expandoexpando*
*Contents  *Index  *Topic Contents
*Previous Topic: event
*Next Topic: face

expando

Description

Specifies whether arbitrary variables can be created within an object. Default is set to TRUE.

Syntax

object.expando[ = boolean]

Remarks

You can extend the properties on an object by creating arbitrary properties with values. For example, an author scripting in a case-sensitive language such as JScript can easily make the mistake when setting a property value. For instance, if the property value is "borderColor" and the author types the value "bordercolor = 'blue'", they author has just, in fact, created another property on the style object called "bordercolor" with the value 'blue'. If the author queries the value of the property, the value "blue" will be returned. However, the borders for the element will not turn blue.

Setting this property to FALSE on the document object will disallow the creation of arbitrary variables.

Applies To

document


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.