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

panoet

Regular Member
Joined
Jun 26, 2010
Messages
242
Reaction score
57
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 :o
 
Last edited:
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.
 
Back
Top