This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Disable a back button in IE and Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Disable a back button in IE and Firefox" Watch "Disable a back button in IE and Firefox" New topic
Author

Disable a back button in IE and Firefox

ArulAjith Singh
Greenhorn

Joined: Oct 25, 2006
Posts: 3
Hi,

Can any one know how to disable a back button in IE and Firefox.
Waiting for your's reply.
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Hi ArulAjith

We cannot disable the browser back button.but we can make back button not to work as it.

Have this code in your jsp, outside of all javascript methods

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Disable a back button in IE and Firefox