Document.linkColor (Property)

The color of links that have not yet been visited.

Availability:

DOM level - 0
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Deprecated
Property/method value type:Color value
JavaScript syntax:-myDocument.linkColor
-myDocument.linkColor = aColorValue
HTML syntax:<BODY LINK="aColorValue">
Argument list:aColorValueA hex color value or color name

This value controls the text of active links in the document body. You should use the normal color values to define the required color.

This property is equivalent to the LINK attribute of the <BODY> HTML tag. This is the color that is used for as yet unvisited links.

Now that the style control facilities are more sophisticated, this tag attribute is likely to fall into disuse. On the other hand it does work consistently on both MSIE and Netscape where style sheet controls do not.

DOM level 1 deprecates this property in favor of the BODY.link property.

Warnings:

See also:BODY.aLink, BODY.bgColor, BODY.link, BODY.text, BODY.vLink, Color names, Color value, Document object, Document.alinkColor, Document.bgColor, Document.fgColor, Document.vlinkColor