BODY.background (Property)

The URL of a background image for the current document.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myBODY.background

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.


See also:Background.src, BODY.bgProperties, Document.background, HTML object