I'm confronted with following problem: I have created a jquery-mobile application within salesforce, to be used on the ipad in salesforce one. In the app, the ipad back button is displayed.
If a user clicks this button, he leaves the jquery application (because it is technically only one page) and all inserted values are lost.
Is their any way to "catch" the back button event in javascript and have the user confirm (via a popup) that he wants to leave?
In the desktop browser it is quite easy to realize this via beforeunload &Co.
$(window).bind('beforeunload', function() { ...
I'm now looking for a similar solution for the iPad app.
Best regards, Max