Recycle your Computers & Technology with us.

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

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

Follow us on Facebook   Follow us on Twitter   Follow us on LinkedIn

Let Data Doctors be your personal IT department today

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

About the author

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

Need Help with this Issue?

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