When the document.expando property is set to false, it inhibits the creation of new properties if they do not already exist. This can sometimes help find bugs in your scripts. Imagine that you may have misspelled a property name. Setting this property so that it generates a runtime error when a new property is created may help you to isolate the fault.
| See also: | Document object |
| Prev | Home | Next |
| Document.execCommand() | Up | Document.fgColor |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||