Sets or retrieves a value that indicates the window name.
dhtml语法
window.name [ = sName ]
DHTML可能的值
sName | String that
specifies or receives an arbitrary name used to identify the object. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
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");
applies to