File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!