25.295. Window.close( ): close a browser windowJavaScript 1.0:25.295.1. Synopsiswindow.close( ) 25.295.2. DescriptionThe 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 AlsoWindow.open( ), the closed and opener properties of Window |