Confirm exit?

Discussion in 'JavaScript' started by Triexa, Nov 27, 2006.

  1. #1
    Is there some way to confirm that they want to leave the page without saving information... and if they click cancel to not do anything?
     
    Triexa, Nov 27, 2006 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    I think you can use onUnload function
     
    it career, Nov 27, 2006 IP
  3. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    window.beforeunload event.
     
    penagate, Nov 28, 2006 IP