Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Make browser back button Disable

Status
Not open for further replies.

Vamsi

Programmer
Apr 28, 2001
2
US
hi,
i had some asp pages, passing through these pages i came to my logout screen where in the user should not go back through the back button of the browser to the previous page.so i want to disable the browser back button when the user comes to logout screen.
so is it possible?
 
i don't think you can. the closest you can come is by disabling right clicks and opening a window without the tool and menu bars.

but, you could still use alt backspace, or whatever the combination is to do that. adam@aauser.com
 
I had a problem like this with people trying to go back to a form after a submit. What I did was put the results of the submit(saying it was succesful) in a popup then returning then back to the begining of the form.

Mark
 
If you've got a form problem - ie don't want people to go back after a submit or something, use Javascript to point the returning page after the submit to another page using the javascript 'location=wherever.html'. It doesn't stop the user crawling right back through the history list, but it does mean that if he clicks the back button once he'll only hit a page that forwards him back to where he was. I think that's about all you can do.

matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top