File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Disable browser backward button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Disable browser backward button" Watch "Disable browser backward button" New topic
Author

Disable browser backward button

Deepanshu Saxena
Greenhorn

Joined: May 10, 2012
Posts: 5
When the user logout it goes to the login page. I want to disable the browser back button. How can i do ?
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

When i was reading head first jsp and servlets, they had a big chapter on "it's not your browser", basically the idea is it isn't your applications browser to fiddle with things.
So for example if you disable the back button, the user changes tabs to another web page, yet their back button is still disabled.

The point is even if you can YOU SHOULDN'T do it.

but I am forwarding you to the jsp forum.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

InterfaceDesignersRule1


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 876
    
  13

If you do this, you should be covered in honey and staked out on an anthill. Few things are more infuriating than a web page that won't let you leave.

Don't mess with the browser!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
 
Consider Paul's rocket mass heater.
 
subject: Disable browser backward button
 
Similar Threads
Disable Back button
how to diable browser back button
Browser Back Button
Disabling the Back button of the browser
Log Out Problem