www.webdeveloper.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    2

    Doing something when the Back button is clicked

    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?

  2. #2
    Join Date
    Jul 2011
    Posts
    2
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles