EN
本內容沒有您的語言版本,但有英文版本。

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

 

 

顯示:
© 2014 Microsoft