Answer the question
In order to leave comments, you need to log in
How to prevent a return?
How can I disable the return to the previous page when pressing the "Back" button on the phone?
I have a preloader in my application in front of the page, it returns to it and spins all the time
Answer the question
In order to leave comments, you need to log in
You can, for example, handle the backbutton event and call event.preventDefault in it
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
document.addEventListener("backbutton", function (e) {
e.preventDefault();
}, false );
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question