General discussion

Locked

How do I kill BACK button on browsers?

By jim.schromm ·
I don't want my users to be able to use their BACK button if they get to a certain page on my site. How do I deactivate this in IE, Netscape browsers, and other browsers?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How do I kill BACK button on browsers?

by aisp In reply to How do I kill BACK button ...

One of the questions in the "Ask the Pro" section section on devx.com was about "Disabling the Browser Back Button". Here is a link to the appropriate Q&A page http://www.inquiry.com/techtips/js_pro/answer.asp?pro=js_pro&docID=2010. The question was: "Is there a method that will prevent a user from going back to the previous page without modifying the browser code? (Does it matter if it is a CGI generated page?). Of course it would nice if this worked on both IE 4.x and Netscape 4.x.". And the answer: "Unfortunately you can't prevent users from using their "Back" buttons. Similarly, you can't prevent them from bookmarking a previous page and then jumping to it directly. If you have a multi-step process and you don't want people to go back to a previous step once they've completed it then a cookie-based solution may do the trick. When they start the process set a cookie on the user's browser (using document.cookie) to a value of 1. Each time they advance a step in the process set this cookie-based counter to the step number they're on. At the beginning of every page in the process check the value of the counter to make sure that it isn't higher than the number of the step associated with that page. If it is higher redirect them tothe step they should be on. If the cookie is missing, redirect the user to the start of the process.". So far I have not noticed errors in DEVX.COM "Ask the Pro" section. But, at least ther maybe workarounds, like the one mentioned here.
Here is alink to a similar question and another "trick" http://www.inquiry.com/techtips/dhtml_pro/answer.asp?pro=dhtml_pro&docID=2988. Q : "Is there a way to disable the browser's back button? I am using Internet Explorer 5.0 and developing an application through JScript with Visual InterDev.". A: "While there is no way to specifically disable the button from within the browser, etc. ..."

Collapse -

How do I kill BACK button on browsers?

by jim.schromm In reply to How do I kill BACK button ...
Collapse -

How do I kill BACK button on browsers?

by jim.schromm In reply to How do I kill BACK button ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums