JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Document.alinkColor Property

Name

Document.alinkColor Property---the color of activated links

Availability

Navigator 2.0; implemented but nonfunctional in Internet Explorer 3.0

Synopsis

document.alinkColor

Description

alinkColor is a string property that specifies the color of activated links in document. This color is displayed between the times that the user presses and releases the mouse button over the link. Note that this property exists, but has no effect in Internet Explorer 3.0. This is because the Internet Explorer user-interface never displays a special color when links are activated.

The activated link color can be specified through the ALINK attribute in the <BODY> HTML tag, and the alinkColor property will contain the specified value. The color may also be specified by assigning a value to alinkColor directly, but this may only be done in the <HEAD> of the document, before the <BODY> tag is parsed.

Colors are specified either as one of the standard color names recognized by JavaScript, or as red, green, and blue color values, expressed as a string of six hexadecimal digits in the form "RRGGBB".

See Also

"Document", "Document.bgColor", "Document.fgColor", "Document.linkColor", "Document.vlinkColor", Appendix G, JavaScript and HTML Color Names and Values


Previous Home Next
Document Book Index Document.anchors[]

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell