IHTMLBodyElement::background Property

Sets or retrieves the background picture tiled behind the text and graphics on the page.

Syntax


HRESULT IHTMLBodyElement::get_background(BSTR *p);HRESULT IHTMLBodyElement::put_background(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the URL of the file to use as the background picture for the page.
v
BSTR that specifies the URL of the file to use as the background picture for the page.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property is deprecated in favor of the background-image attribute of CSS.

See Also

Community Additions

Show: