BODY.link (Property)

The color of an as yet unvisited link in the page.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myBODY.link

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.

Note also that its property name is not consistent with its counterpart, the document.linkColor property whose value it reflects.

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