Body background attribute
Body object
Definition and Usage
The background attribute sets or returns the value of the background attribute of the body element.
The background attribute describes the background image of the document.
Syntax
bodyObject.background=
URL
Browser support





All major browsers support the background attribute.
Example
Example
Return the value of the background attribute of the body element:
Try it »
Body object