You can use the following HTML code to close window within your website. This can be handy on popup windows. To be precise, this is actually JavaScript code combined with HTML code.
To see this code in action, check out the "close" link on this popup page:
Open a popup window (then close it using the "close" link)
<a href="JavaScript:window.close()">Close</a>
To see this code in action, check out the "close" link on this popup page:
Open a popup window (then close it using the "close" link)