style.backgroundImage (Property)

The image displayed as a background to the object.


CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Opera - 5.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.backgroundImage
CSS syntax:background-image: aURL
Argument list:aURLA 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.

See also:JSSTag.backgroundImage, style.background, style.backgroundAttachment