2.3.1.5 background

Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

background of type DOMString

Sets or retrieves the URL of the file that is used as a background picture tiled behind text and graphics in the object.

For Windows Internet Explorer 8 or later, when the browser is in Internet Explorer 8 mode, the value of the background attribute depends on the context of the reference to the attribute. When read as a Document Object Model (DOM) attribute, background returns an absolute URL. The value specified by the page author is returned when background is read as a content attribute, when the page is displayed in an earlier document compatibility mode, or when the page is viewed with an earlier version of the browser.

This attribute extends the following interfaces:

Show: