Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

name property

Sets or retrieves a value that indicates the window name.

Syntax

JavaScript

p = object.name

 

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

window

 

 

Show: