link property
Sets or gets the color of the document links for the object.
Syntax
HRESULT value = object.put_link( v);HRESULT value = object.get_link(* p);
Property values
Type: VARIANT
one of the color names or RGB values in the Color Table.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 7.5.1 (Deprecated)
Remarks
When you use the IHTMLLinkElement::rel attribute of a link element, the value (and purpose) of the IHTMLLinkElement4::href attribute varies according to the value of the IHTMLLinkElement::rel attribute. For more info, see the table of supported values on the IHTMLLinkElement::rel attribute page.
The IHTMLBodyElement::link property cannot be set through the BODY object's HTMLFrameSiteEvents::onload event.
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
See also
Show: