BODY.aLink (Property)

The colour of an active link in the current page.


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.aLink

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 the 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.

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

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