Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Window name property

Window name property

Window Object Reference Window Object


Definition and Usage

The name property sets or returns a string containing the name of the window.

Syntax

window.name


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property.


Example

Example

Return the name of the new window:

Runoob Tutorial(runoob.com)

Try it »


Window Object Reference Window Object