In MSIE, this property is a reference to a BODYobject. Early versions of Netscape are not DOM compliant and do not support this property since it has no BODY object implemented to refer to. This is corrected in Netscape 6.0 which implements full DOM level 1 compliance.
The DOM level 1 specification states that this property should yield an HTMLElement object. A BODY object is derived from an HTMLElement so that general rule is satisfied.
If the document is a frameset then it will return a FRAMESET object.
Prev | Home | Next |
Document.bgColor | Up | Document.captureEvents() |
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. |