I’m using Jquery Mobile to create a mobile app in combination with phonegap. Now I had this login dialog which I originally set as a dialog (instead of a page). However, I needed to be able to control the functionality of the close button, so I changed it into a page, where i created my own close button.
Now I have a problem of the page being added to the browser history. The problem her is when using this app on Android, hitting back opens/closes the login dialog x number of times, before closing the app… What it really should do is just close the application.
Any idea how I can make this “login dialog” page not be added to the browser history?
From the jQuery Mobile documentation: