What HTML code can be use to close a browser window?

Question

How do I close a browser window with HTML code?

Answer

This question was answered on March 14, 2005. Much of the information contained herein may have changed since posting.

Type the following code to close the browser window:

<input type="button" value="Close this window" onclick="self.close()">

Need Help with this Issue?

We help people with technology! It's what we do.
Schedule an Appointment with a location for help!

Author

Posted by Kera of Katharine Gibbs School - New York on March 14, 2005