Window name property
Window Object
Definition and Usage
The name property sets or returns a string containing the name of the window.
Syntax
window.name
Browser support





All major browsers support the name property.
Example
Example
Return the name of the new window:
Try it »
Window Object