Document.background (Property)

DOM originally intended this to be the URL of a background image for the current document.

Availability:

DOM level - 0
Deprecated
Property/method value type:String primitive
JavaScript syntax:nonemyDocument.background

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