YouTip LogoYouTip

Prop Body Background

# Body background Property [![Image 8: Body Object Reference](#) Body Object](#) * * * ## Definition and Usage The background property sets or returns the value of the background attribute of the body element. The background property describes the background image of the document. ## Syntax bodyObject.background=_URL_ * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The background property is supported in all major browsers. * * * ## Example ## Example Return the value of the background attribute of the body element: document.write("Background image is: ") document.write(document.getElementById("logo").background); [Try it yourself Β»](#) * * Body Object](#)
← Prop Body BgcolorProp Body Alink β†’