This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Browser Back buton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Browser Back buton" Watch "Browser Back buton" New topic

Browser Back buton

Bharadwaj Adepu
Ranch Hand

Joined: Dec 30, 2007
Posts: 99
How can i disable a browser's back button in a JSP page??
I dont want to go back using Browser's back button.How can i do it?

SCJP 1.5
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can't.
This is a good thing.
The back button isn't yours. It belongs to the user of the browser and is there for him/her to navigate across different sites as well as different pages within a single site.

It's not for the developer of any particular site or application to decide whether or not this feature is available to an end user.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Don't get me started about those stupid light bulbs.
subject: Browser Back buton
Similar Threads
Disable browser back button with flex 4 application
Ok. But where is the Cancel?
javascript question.
Disabling Browser's 'BACK' button
controlling going back to previous page after logout