How can I disable the forward and back buttons in a browser from JavaScript?

John Zukowski

You can't. About the best you can do is hide the buttons and disable caching of the pages. Unfortunately, their keyboard equivalents (ALT+Right/Left Arrow) will still work. At least with caching disabled, you're forcing the pages to be refetched from the server.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact