Close Window Button

Submitted by:Andery Smith

Date added:17 April, 2013

Category:JavaScript

In Firefox, Safari and Chrome, this script only works if the window was originally opened using Javascript (window.open function)

Tags: close window

Code Snippet:

<input type="button" value="Close This Window" onclick="javascript:window.close();" />
 
 

Comments