close the window when you click on a link

liunx

Guest
Hey, I want the splash screen to close when you click on the link to go to the main site. I have tried a couple of things, but nothing that works. <!-- m --><a class="postlink" href="http://www.catalyst1.com">http://www.catalyst1.com</a><!-- m --> Thanks<!--content-->you can close the opener from the new page this way:<br />
<br />
<html> <title> Kill opener </title><br />
<script language="JavaScript"><br />
function killer() <br />
{<br />
window.opener.opener='a';<br />
window.opener.close(); <br />
}<br />
</script><br />
<br />
<br />
</head><br />
<body onLoad="setTimeout('killer()',2000)"><br />
<h3> This page kills its opener 2 seconds after loading</h3><br />
</body><br />
</html><br />
<br />
<br />
<br />
The page cannot close itself without a security warning<br />
<br />
<br />
<br />
BTW it is a dumb thing to do. It will irritate a lot of users and they will not return to the site.<!--content-->
 
Back
Top