How to disable the back button of browser ?
-
I want to disable back button of brower ... Is any property like isBack like for postback the property isPostback is there....
-
I want to disable back button of brower ... Is any property like isBack like for postback the property isPostback is there....
sounds like you're going to spend a lot of time on your knees. No, there's no such thing. There are hacks, and they annoy all your users except the ones smart enough to break them. Who are the ones you're worried about in the first place. Asking this question usually means your overall design is broken, a site should not care if the user uses the back button.
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
I want to disable back button of brower ... Is any property like isBack like for postback the property isPostback is there....
hey... I think if you open the page in a new window, and close the original page, the back button will be disabled.... Try this code for your need function goNewWin() { window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1'); self.close() } [Open New Page](javascript:goNewWin()) you can also try doing this Let Page A calls Page B and user is not allowed to go to Page A from Page B. Put the code below in Page A. window.history.forward(1); I think this will do... :rose: Abhishek Sur
-
I want to disable back button of brower ... Is any property like isBack like for postback the property isPostback is there....
-
I want to disable back button of brower ... Is any property like isBack like for postback the property isPostback is there....
well you may write <script> window.history.forward(1) </script> to every window so that it will try to go forward on every pageload.. if it finds one forward level it will automatically go forward.. this helps you when user click on back button... but this is not a good practice... but you can use.
Abhishek Sur
-
well you may write <script> window.history.forward(1) </script> to every window so that it will try to go forward on every pageload.. if it finds one forward level it will automatically go forward.. this helps you when user click on back button... but this is not a good practice... but you can use.
Abhishek Sur