August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.alinkColor
The alinkColor property specifies the color of activated links. A link is considered activated between the time the mouse button is pressed and released over a link. The color is expressed as a string in hexadecimal digits or as one of the JavaScript standard color names. The hexadecimal form is made up of six digits that follow the pattern "RRGGBB."
The sample code in Listing 7.49 sets the activated links color to green for all links on the page, even if they are placed before the <script> tags.
<html> <a href="myGreenPage.html">The Green Site</a><br> <script language="JavaScript"> ... |
Read now
Unlock full access