Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:12 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc