I'm looking to have a lightbox pop up when a user clicks the Back button in their browser rather than just navigating back. The purpose is to ask a question with a Yes/No answer, and if they click No, I allow them to go back. The only thing I've found anything like this is the onUnload event, but that doesn't prevent them from going back. How should this be handled?
I suppose it's not possible or nobody knows because there's no reply to this. Actually all I really need is the ability to tell that they are going back a page no matter what they clicked, so is there some way to check window.history for that event, or some other method?
Bookmarks