File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Disabling Browser's 'BACK' button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling Browser Watch "Disabling Browser New topic
Author

Disabling Browser's 'BACK' button

Vivek Puthiyonnan
Greenhorn

Joined: Jan 26, 2005
Posts: 18
How can i disable the browser's 'BACK' button using script ?


Vivek P
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Onload of that page,

Use this code.
But i would personally say that, disabling the back button in a browser is not a good design.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Disabling Browser's 'BACK' button