IHTMLBodyElement::link Property

Sets or gets the color of the document links for the object.

Syntax


HRESULT IHTMLBodyElement::get_link(VARIANT *p);HRESULT IHTMLBodyElement::put_link(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_BSTR or VT_I4 that receives one of the color names or RGB values in the Color Table.
v
VARIANT of type VT_BSTR or VT_I4 that specifies one of the color names or RGB values in the Color Table.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IHTMLBodyElement::link property cannot be set through the BODY object's onload event.

Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.

Community Additions

Show: