View Full Version : onunload
07-08-2002, 03:21 PM
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?
07-08-2002, 04:12 PM
Example for what you want:
I hope it's effect for you :thumbsup:
07-08-2002, 05:38 PM
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 question :)
07-08-2002, 05:49 PM
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/.......
07-08-2002, 06:07 PM
I think I will just do a popup behind off of the default page, that way when they leave it is there.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.