Easy Tutorial
❮ Prop Style Borderspacing Jsref Isnan Number ❯

Window close() Method


Definition and Usage

The close() method is used to close the browser window.

Syntax


Browser Support

All major browsers support the close() method.


Example

The following example can close a new browser window:


❮ Prop Style Borderspacing Jsref Isnan Number ❯