Prevent Use of the Back Button (in IE)

Don’t do this, just don’t. It’s bad interface design and forces the user’s browser to behave in a way that they don’t expect.

I would regard any script that successfully stopped my back button from working to be a hack, and I would expect the IE team to release a security-fix for it.

The back button is part of their program interface, not your website.

In your specific case I think the best bet is to add an unload event to the page that warns the user if they haven’t completed the form. The back button would be unaffected and the user would be warned of their action.

Leave a Comment