estesflyer
Programmer
ok, if you know js, you can read what this is doing...
for some odd reason, when i hit cancel, the script does NOT work. the page only refreshes...
script language="javascript">
<!--
function NewWindow()
{
var confirmalert=window.confirm("Warning - By entering this site, you agree to our dislcaimer, do you wish to continue?"
if (confirmalert)
{
window.open("top.self.close();
}
else
{
window.location = "}
}
//-->
</script>
plz note also, that the link triggering the function, is the following...
<a href="" onClick="NewWindow()">Enter</a>
i have a fealing that its the href="" that is the problem. but i want the script to overpower that. plz lemme know what i can do.
thx for your help
for some odd reason, when i hit cancel, the script does NOT work. the page only refreshes...
script language="javascript">
<!--
function NewWindow()
{
var confirmalert=window.confirm("Warning - By entering this site, you agree to our dislcaimer, do you wish to continue?"
if (confirmalert)
{
window.open("top.self.close();
}
else
{
window.location = "}
}
//-->
</script>
plz note also, that the link triggering the function, is the following...
<a href="" onClick="NewWindow()">Enter</a>
i have a fealing that its the href="" that is the problem. but i want the script to overpower that. plz lemme know what i can do.
thx for your help