[Chapter 21] Reference: Document.linkColor
Author: David Flanagan
Date: Fri Aug 29 11:15:10 1997

#

| Chapter 21 JavaScript Reference |

# Document.linkColor Property

## Name

Document.linkColor Property---the color of unfollowed links

## Availability

Navigator 2.0, Internet Explorer 3.0

## Synopsis

    document.linkColor

## Description

`linkColor` is a string property that specifies the color of unvisited links in `document`. All hypertext links in the document are displayed in this color, except for those that have already been followed or visited.

The link color can be specified through the `LINK` attribute in the `<BODY>` HTML tag, and the `linkColor` property will contain the specified value. The color may also be specified by assigning a value to `linkColor` 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.alinkColor", "Document.bgColor", "Document.fgColor", "Document.vlinkColor", Appendix G, JavaScript and HTML Color Names and Values

Document.lastModified |  | Document.links[]