1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me with this "pop up" scenario, please...

Discussion in 'Web Design' started by panoet, Jun 26, 2010.

  1. panoet

    panoet Regular Member

    Joined:
    Jun 26, 2010
    Messages:
    243
    Likes Received:
    56
    The scenario :
    1. I've made 1 div "pop up" that hidden.
    2. When visitor leaving my page or click on link to other sites, div "pop up" set to visible asking visitor to leave or visiting another page that I've set before
    3. When div "pop up" appear, all process "paused". Similar when
    Code:
    alert()
    in javacript, its will pause all event and then continue when user click OK button.

    My problem is at point 3. If I've try to use
    Code:
    onbeforeunload
    , the process still continue. Can anyone help me?

    Thank :eek:
     
    Last edited: Jun 26, 2010
  2. goawayplease

    goawayplease Regular Member

    Joined:
    Apr 10, 2008
    Messages:
    299
    Likes Received:
    67
    I don't know of anyone who has figured this out, mostly because browser standards are developed to prevent a website from preventing exit of the browser.