Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML

Print Version

HTML Close Window Code

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.

<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)

Enjoy this website?

  • Share
  • Add this page to your Favorites
  • Link to this page (copy/paste into your own website or blog):
  • Link to Quackit using one of these banner ads.
  • Help support Quackit by making a donation

Oh, and thank you for supporting Quackit!

© Copyright 2000 - 2010 Quackit.com