Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable the back button in certain pages of Oracle JET application

Janaki NarayananSep 21 2018 — edited Sep 23 2018

My Application has page that display the details in list view.On clicking on the list item it will drill down to the page which shows it respective details. I need to navigate from the details page to list page using default back button in mobile or browser ,but same back button should not work when I click in list view page.

I tired to prevent the default action of the back button by adding the  below code in js of that page(LIST).But the back button is disabled for the whole application.

  document.addEventListener("backbutton", onBackKeyDown, false);

  function onBackKeyDown(e) {

    e.preventDefault();

  //     alert('Back Button is Pressed!');

  }

Could anyone help me  to solve this issue.

Thanks in Advance

Comments
Post Details
Added on Sep 21 2018
3 comments
837 views