COVID-19 UPDATE: How Data Doctors is preparing & responding. Learn more >

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


How do I close a browser window with HTML code?


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!


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