View Full Version : some j-s help
MrBrian
02-01-2001, 10:04 AM
how do i stop a link from poping up an exit console? im pretty sure its something like "onclick 'exit_false" but not really sure. thanks in advance, brian
Lizard
02-01-2001, 11:07 AM
This is what I use:
Goes in the head section
<script language="JavaScript">
<!--
function pop( windowURL, windowName, windowFeatures ){
return window.open( windowURL, windowName, windowFeatures);
}
var nopop;
nopop = false;
function x(){
var p1;
if (!nopop){
p1 = pop('http://www.site.com', 'pop1', 'width=800,height=600,toolbar=1,location=1,directo ries=1,status=1,menuBar=1,scrollBars=1,resizable=1 ');
}
}
// -->
</script>
Link coding:
<a onclick="nopop=true;" href="http://www.somesite.com" target="_top">Click here</a>
Lizard
02-01-2001, 11:11 AM
ups, and of course this one in the body tag:
<body onunload="x();">
shane
02-01-2001, 11:16 AM
or
onclick='exit=false'
but it depends on your javascript to actually pop the window
MrBrian
02-01-2001, 08:17 PM
thanks guys http://bbs.adultwebmasterinfo.com/ubb/smile.gif
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.