• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1139
  • Last Modified:

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
0
sladej
Asked:
sladej
  • 2
1 Solution
 
flipzCommented:
You can use the onbeforeunload event but may have it's limitations:
http://msdn.microsoft.com/en-us/library/ms536907(VS.85).aspx
0
 
sladejAuthor Commented:
This works for any movement off the page.  We need something that will work if the back or fwd buttons are used only.
0
 
flipzCommented:
I am not aware of any events that only trap those conditions. If such an option was available - although I can think of many good uses for it - I can also imgaine some very irritating uses as well. Even though I cannot offer any more suggestions - I will be monitoring this post to see if a solution exists. Good luck.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now