name property
Sets or retrieves a value that indicates the window name.
Syntax
| JavaScript | |
|---|
Property values
Type: String
an arbitrary name used to identify the object.
Remarks
To access a window's name property, use the window keyword.
Examples
This example assigns the name property to the window object.
window.name="MyWindow";
This example uses the window's open method to assign the name property.
window.open("file.htm","Frame1");
See also
Show: