[thelist] JavaScript Newbie help - targeting links

Ron_Senykoff at BEAEROSPACE.COM Ron_Senykoff at BEAEROSPACE.COM
Fri May 25 11:12:45 CDT 2001


<snip>
<a href="#" onclick="opener.location='page.htm';self.close()">
</snip>

Think you need .href in there... also, the javascript works better cross-browser
when placed in the href...
<a href="JavaScript: closerFunction();">Click Here to Close</a>

and in the
<head>
<script language="JavaScript">
<!-- Hide
function closerFunction()
{
opener.location.href='page.htm';
self.close();
}
// end hide -->
</script>
</head>

Untested, but should work.  Let me know if you have problems...

-Ron S.






More information about the thelist mailing list