I have a mobile web app with a login screen. After logging in, the user goes to the homescreen of the app. Since I have back buttons enabled for the entire application, the back button appears on the homescreen; however, pressing "Back" now will take the user back to the login page (which I don't want). At the same time, the homescreen should have a "Back" button, since user might get to the homescreen from some other screen in the app and might want to go back.
So basically is there any easy way to disable the back button if it's going to go to the login screen, but not if it's going someplace else?