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