IHTMLBodyElement::get_bgColorIHTMLBodyElement::get_bgColor*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLBodyElement::put_bgColor
*Next Topic: IHTMLBodyElement::put_text

IHTMLBodyElement::get_bgColor


HRESULT get_bgColor(
    VARIANT *p
);

Retrieves the background color of the page.

p
Address of a VARIANT structure that receives the color. The color can be one of the color names or values given in the Color Table reference documentation.

JScript supports the entire set of valid property colors both as strings and their numerical equivalents as a string. JScript always returns the property as the numeric equivalent as a string regardless of the format to which the value was set.

See also put_bgColor

Up Top of Page


IHTMLBodyElement::put_bgColor


HRESULT put_bgColor(
    VARIANT v
);

Sets the background color of the page.

v
VARIANT structure containing a string or value specifying the color. The color can be one of the color names or values given in the Color Table reference documentation.

JScript supports the entire set of valid property colors both as strings and their numerical equivalents as a string. JScript always returns the property as the numeric equivalent as a string regardless of the format to which the value was set.

See also get_bgColor


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.