Document.alinkColor (Property)

The color of a link on the page while it is being activated.

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.alinkColor
-myDocument.alinkColor = aColorValue
HTML syntax:<BODY ALINK="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 ALINK attribute of the <BODY> HTML tag. This is color that is used while the mouse is over the link and the button is held down by the user.

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.

The DOM level 1 standard deprecates the usage of this property in favor of BODY.aLink instead.

Warnings:

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