I am trying to make a popup that displays only when the user leaves the site, however, the onunload does it for only page it is listed on? Is there a script I can make to popup only when the user leaves the site, and not just the page?
Announcement
Collapse
No announcement yet.
onunload
Collapse
X
-
try this
The only way I can see as the way round this - as you require the pop up when the site is left is to have a one page site, layered into sections to hold the content of the existing other pages and the unload event on the main page itself as it currently is.
Sorry if thats of no help but its my thought on your questionTherapy is expensive, popping bubble wrap is cheap, you choose.
Comment
-
They way I have it done on my pop up generator is that when a perosn clicks on a link I have it validate that it is a link....and it will not shhot the pop up window....If the window is shut, it will pop it up....problem is with back button presses and forward button, it will pop up/.......Tech Author [Ajax In Action, JavaScript: Visual Blueprint]
Comment
Comment