My Application has page that displays the details in a list view. On clicking on the list item it will drill down to the page which shows its respective details.
I need to navigate from the details page to the list page using the default back button in mobile or browser, but the same back button should not work when I click on it in the list view page.
I tired to prevent the default action of the back button by adding the below code in the JS of that list page. However 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