File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes disable the browser back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable the browser back button" Watch "disable the browser back button" New topic

disable the browser back button

deva siva
Ranch Hand

Joined: Apr 29, 2005
Posts: 37
how can I disable the browser's "Back" button in a HTML page?
I do not want to create JavaScript window to avoid showing any toolbar,etc.
In regular HTML page, is there any way to disable the back button in the toolbar?
[ July 06, 2005: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not disable the back button.

moh sak
Ranch Hand

Joined: May 11, 2005
Posts: 78
hi deva,

as eric said there is no way to do that, i face this problem while building my graduation project, i found a solution that is to replace the currunt page by the new page this will avoid the user of having any history to back to.

i think this will help.
I agree. Here's the link:
subject: disable the browser back button