Link to home
Start Free TrialLog in
Avatar of sladej
sladejFlag for United States of America

asked on

IE Browser back button capture using javascript

I am looking for a java script snippet that can capture the use of the back button on IE, post a message to the user, and not allow the back action to take place
Avatar of flipz
flipz
Flag of Canada image

You can use the onbeforeunload event but may have it's limitations:
http://msdn.microsoft.com/en-us/library/ms536907(VS.85).aspx
Avatar of sladej

ASKER

This works for any movement off the page.  We need something that will work if the back or fwd buttons are used only.
ASKER CERTIFIED SOLUTION
Avatar of flipz
flipz
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial