Section 25.295. Window.close( ): close a browser window


25.295. Window.close( ): close a browser window

JavaScript 1.0:

25.295.1. Synopsis

 window.close( ) 

25.295.2. Description

The close( ) method closes the top-level browser window specified by window. A window can close itself by calling self.close( ) or simply close( ). Only windows opened by JavaScript can be closed by JavaScript. This prevents malicious scripts from causing the user's browser to exit.

25.295.3. See Also

Window.open( ), the closed and opener properties of Window




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net