document.alinkColor

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+ Syntax

document.alinkColor

Description

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

Example

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.

Listing 7.49 Setting Document Properties
 <html> <a href="myGreenPage.html">The Green Site</a><br> <script language="JavaScript"> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.