close a popup

liunx

Guest
I've opened a pop up window and I want to close it when the user clicks a hyperlink or a button. How do I do this?<!--content-->For a link:<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:window.close()">Close Window</a><br />
<br />
for a button:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:window.close()"><img src="whatever" border=0 width="whatever" height="whatever"></a><!--content-->
 
Back
Top