JavaScript window close:

This close window script will close a window that was opened with JavaScript. NOTE: You can only close an externally opened window without user confirmation in IE...BUT in Netscape 7.1 you can close the parent window without confermation


This code goes into the BODY section:


OR you could use the below code if you wanted.




You can also say: self.close() in place of: window.close()


Click here to go back.