Availability: |
| ||||||||
Property/method value type: | String primitive | ||||||||
JavaScript syntax: | - | myStyle.backgroundImage | |||||||
CSS syntax: | background-image: aURL | ||||||||
HTML syntax: | <BODY BACKGROUND="..."> | ||||||||
Argument list: | aURL | A reference to an image asset |
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 will be stationary or move with the document when it is scrolled according to the setting of the style.backgroundAttachment property.
Prev | Home | Next |
style.backgroundColor | Up | style.backgroundPosition |
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. |