www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 name Property
name Property

Sets or retrieves a value that indicates the window name.

Syntax

[ sName = ] window.name

Possible Values

sNameString 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");

Standards Information

There is no public standard that applies to this property.

Applies To

window
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG