JavaScript: The Definitive Guide

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

Категории