This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Disabling the Back Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Disabling the Back Button" Watch "Disabling the Back Button" New topic

Disabling the Back Button

Hari Haran

Joined: Sep 21, 2000
Posts: 19

I need to disable the Back button in the Browser in my application.Is it possible.If so how ?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
This is definately a frequently asked question. There is no way to disable the back button. A much better approach is to make your web application happy to serve any of its pages based on the current state of its data model, and mark any dangerous pages as not to be cached.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Disabling the Back Button
Similar Threads
Ok. But where is the Cancel?
Retain the combo box value when the page is revisited
How to call Action class when back button is clicked ?
How to call a javascript function on back button press of the brower window
disable browser caching not working