How do you close a popup?
Hi.
I've created some popup windows to give essential information for my site. I've used Javascript to define the window size and html for the layout. (I'm still at the basic level for both)!
I'd like to include a button to close the windows, but can't work out how to do it.
Can anyone help please.
Thanks in advance.
Philip
Re: How do you close a popup?
<form>
<input type=button value="Close This Window" onClick="javascript:window.close();">
</form>
Re: How do you close a popup?
Quote:
Originally Posted by
bobdog
<form>
<input type=button value="Close This Window" onClick="javascript:window.close();">
</form>
Great! Thanks very much. Now, can I use a custom button to match the site?
Re: How do you close a popup?
<a href="javascript:window.close();"><img src="images/my_image.jpg" alt="" width="25" height="10" border="0"></a>
Re: How do you close a popup?
Quote:
Originally Posted by
bobdog
<a href="javascript:window.close();"><img src="images/my_image.jpg" alt="" width="25" height="10" border="0"></a>
Brilliant!! Thank you.