JavaScript Reference/Javascript Properties/alinkColor
"alinkColor" Example
<source lang="javascript">
<html> <body onLoad="goColor();"> <script>
function goColor() { document.alinkColor = "red"; }
</script> <a href="http://www.wbex.ru/">wbex.ru Link: click to turn red</a> </body>
</source>
"alinkColor" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+
</source>
"alinkColor" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets the all active links" color. This property applies to the document object, whereas the aLink property applies to the <body> element.
Value: Web color name or hexadecimal value in #RRGGBB format.
Syntax:
document.alinkColor = value
</source>