Click to return to the DHTML, HTML     
EVENT Attribute | event P...     FACE Attribute | face Pro...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

expando Property


Sets or retrieves whether arbitrary variables can be created within an object.

Syntax

HTMLN/A
Scriptingdocument.expando [ = bExpand ]

Possible Values

bExpand Boolean that specifies one of the following values:
trueCreation of arbitrary variables is allowed.
falseCreation of arbitrary variables is not allowed.

The property is read/write with a default value of true.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

You can extend the properties on an object by creating arbitrary properties with values. You should be careful, however, because you can unintentionally set a property value when scripting in a case-sensitive language such as Microsoft® JScript® (compatible with ECMA 262 language specification). For example, if the property value is borderColor and you type the value "bordercolor = 'blue'", you have, in fact, created another property on the style object called bordercolor with the value 'blue'. If you query the value of the property, the value "blue" is returned. However, the borders for the element do not turn blue.

Microsoft® Visual Basic® Scripting Edition (VBScript) does not support expando properties on its native language objects, nor does it cause Microsoft® Internet Explorer to create expando properties on its objects. Internet Explorer supports creation of expando properties on its objects, in any language, through setAttribute.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting document


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.