Alert user when they hit the browser back button - with good reson

Posted by Dirty Bird Design on Stack Overflow See other posts from Stack Overflow or by Dirty Bird Design
Published on 2010-06-13T20:53:24Z Indexed on 2010/06/13 21:02 UTC
Read the original article Hit count: 166

Filed under:

I know this borders on the taboo here, and please don't reply with "you should never do this etc" I have a very long form in a wizard, some users are too used to using the browsers back and forward buttons that they use those instead of the "Back" and "Next" buttons on the form wizard. If they hit the browsers back button they lose all of their form data which is a pain in the ass, since form is so long. Is it possible to display an alert that when will have a "take me out of here" and a "cancel" button so if they hit cancel it will cancel the function of the back button?

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery