View Full Version : Exit console question...
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:
<html>
<script language="JavaScript">
function exit(){ window.open('exit.htm');}
</script>
<head>
And put this command also in the page:
<base target="_new"> So that the exit console only pop up when the user leaves your site.
And in the Bodytag : onUnload="exit()"
I think what you are looking for is this...
<SCRIPT LANGUAGE="JavaScript">
var exit=true;
function pop()
{
if (exit)
window.open('http://domain.com/pop.html');
}
</SCRIPT>
and onclick="exit=false" in the HREF statements
Thanks Pinox and Zane..
And yes Zane that is what I was looking for. Thanks again.
Ride
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.