link attribute | link property
Sets or gets the color of the document links for the object.
Syntax
| HTML | <element link="p" ... > |
|---|---|
| JavaScript | |
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 rel attribute of a link element, the value (and purpose) of the href attribute varies according to the value of the rel attribute. For more info, see the table of supported values on the rel attribute page.
The link property cannot be set through the BODY object's onload event, but the linkColor property can.
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
See also