Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

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

trueAllows the creation of arbitrary variables.
falseDisallows the creation of arbitrary variables.

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

Remarks

You can extend the properties on an object by creating arbitrary properties with values. The author should be careful, however, because scripting in a case-sensitive language such as JScript™ (compatible with ECMA 262 language specification) can result in unintentionally setting a property value. For example, if the property value is "borderColor" and the author types the value "bordercolor = 'blue'", the 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.

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

Applies To

HTML N/A
Scripting document

Does this content meet your programming needs? Write us!

Back to topBack to top

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

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site