Anime Online - Debt Consolidation - Debt Consolidation - Internet Advertising - Sciences in 2007

PDA

View Full Version : javascript exit slide


Edynas
Aug 20th 2006, 3:10 pm
I want a slide in page when ppl leave my site other then links on my page. So I need somekind of modification of an exit popup.

What is the best way to do this? Add a function to each link on the page or is there a better way to do this?

Darrin
Aug 21st 2006, 11:12 am
I think you could add the "onUnload" event to the <BODY> tag of the page. That should fire whenever the page exits. Then you can run the script that you want from there.

There is also an "onblur" event that I think will fire when the page loses focus. You will want to check on browser compat. with these, though.