The background image for the document which is defined in the<BODY> tag is actually stored in the BODY object in MSIE. You cannot access the background image directly in Netscape because the BODYobject is not available.
DOM level 1 deprecates the use of this property in favor of the BODY.background property. Accessing this property in MSIE and Netscape returns the undefined value.
| See also: | BODY.background |
| Prev | Home | Next |
| Document.attachEvent() | Up | Document.bgColor |
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. | ||