PDA

View Full Version : Exit console question...


Ride
02-20-2001, 10:50 AM
I know I could probably figure it out if I wasn't so lazy, but what is the command to add to a link so that the exit console does not pop up? I only want the exit console to load if they don't click on any of my links... Thanks

Ride
ICQ:42015495

Pinox
02-20-2001, 11:00 AM
<font face="Verdana, Arial" size="2">Originally posted by Ride:
what is the command to add to a link so that the exit console does not pop up? I only want the exit console to load if they don't click on any of my links... Thanks
</font>

Dont know if you mean this, but okay. When i use a exit console i use this:

&lt;html&gt;
&lt;script language="JavaScript"&gt;
function exit(){ window.open('exit.htm');}
&lt;/script&gt;
&lt;head&gt;

And put this command also in the page:

&lt;base target="_new"&gt; So that the exit console only pop up when the user leaves your site.

And in the Bodytag : onUnload="exit()"

Zane
02-20-2001, 12:14 PM
I think what you are looking for is this...

&lt;SCRIPT LANGUAGE="JavaScript"&gt;
var exit=true;
function pop()
{
if (exit)
window.open('http://domain.com/pop.html');
}
&lt;/SCRIPT&gt;


and onclick="exit=false" in the HREF statements

Ride
02-20-2001, 01:08 PM
Thanks Pinox and Zane..

And yes Zane that is what I was looking for. Thanks again.


Ride