Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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
I agree. Here's the link:
subject: Browser Back buton