View Single Post
Old 2004-06-26, 03:22 AM   #2
Mateusz
Screw you, guys. I'm going home.
 
Mateusz's Avatar
 
Join Date: Mar 2004
Location: Gliwice, Poland
Posts: 996
Send a message via ICQ to Mateusz
I'm not sure if it's what you are looking for.. put this part in head section


PHP Code:
<SCRIPT LANGUAGE="JavaScript">
var exit=
true;
function 
unload() {
if (exit){
window.open('YOURURL');
}
}
// -->
</SCRIPT> 
than execute this function on window exit by adding


PHP Code:
<body OnBeforeUnload="unload()"
you can also put this line at each <a href >if you want your exit window appear only if someone doesn't click any link

PHP Code:
  target="_self" onClick="exit=false" 

however if you are trying to flood your users with popups most likely they will try to quit this hell rather than spend some money
Mateusz is offline   Reply With Quote