Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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:
© 2014 Microsoft