It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Back button issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Back button issue" Watch "Back button issue" New topic

Back button issue

venkatesh pendharkar
Ranch Hand

Joined: Apr 29, 2006
Posts: 106
Hi all,
I am developing currently an online shopping website. On this website, on some of the pages I want to disable the browser back button . If not disable, then at least I want show an alert on back button. I made a lot of search on google, but everywhere I found that it is not possible to disable back button or know the back button alert. Can anyone help me out with any suggetions?
Also I tried to clear the history for the pages for which I want to disable the back button. But my code works in IE & not in other browsers. So it will be great if someone can give me a code that will not save the current page in the history for all the browsers?
Thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63343

Please read this.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Back button issue
It's not a secret anymore!