I created the following event to Android’s Back button (PhoneGap 2.2.0):
document.addEventListener("backbutton", function (e) {
//Do Something
}, false);
I have the following link that takes me to an external site from application
My Link
I override the back button event and as soon as I pass inside the app to another link the event is not canceled.. and since another link not know cordova he can not even access to this event.
So I have to cancel it completely!
How I do it…?
When I press the back button I get the following error message in the log:
Uncaught ReferenceError: cordova is not defined at :1
and nothing happens ..
place html tags
Please find below link for the detailed answer
https://gist.github.com/955496