Open & Close new window

liunx

Guest
I have a pop-up window running off a cookie that opens only once a day when the index page loads. How do I put a link in the client window that when clicked will close the client and open the new page in the index (for ease of understanding, the URL is <!-- m --><a class="postlink" href="http://www.micosol.co.uk/index.htm">http://www.micosol.co.uk/index.htm</a><!-- m -->)<!--content-->I assume your wanting to put a link inside the pop-up. <br />
<A href=http://www.htmlforums.com/archive/index.php/"#" onclick="do_it();">Click here</a><br />
is the link<br />
and this goes inside the header:<br />
<br />
<script language=javascript><br />
function do_it(){<br />
window.opener.locaton="http://www.yahoo.com";<br />
close_me();<br />
}<br />
function close_me(){<br />
self.close();<br />
}<br />
</script><br />
<br />
This stuff is going to work if your pop-up is spawned by javascript.<!--content-->
 
Back
Top