If a background image is available, then its URL is contained in this property. Changing the value in this property will replace the background with a new one; however, there may be a perceptible delay while the new image is fetched from the web server.
The background image for the document that is defined in the <BODY> tag is accessible via the BODY.background property in MSIE.
You cannot access the background image directly in Netscape Navigator because the BODY object is not reflected into the JavaScript environment.
Prev | Home | Next |
BODY.aLink | Up | BODY.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. |