I’m trying to detect and change browser behavior if a user clicks on the back button.
Is this even possible through Javascript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Wow i just learnt a lot by reading this tutorial on javascript.
It talks about the following things:
Mastering The Back Button With Javascript
which talks about how history have been made with lock down. You can make limited changes. But you can put a replacement URL so if a person does decided to go back it will redirect it to a different page. It will be good for security reasons, if a person logs in then logs out, and another person presses the back button, the page will just be taken to the replacement page.
check it out
Its really short and precise, informative article/tutorial and contains many java snippets to help you for each section.
http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript
I hope this helps.
PK