JavaScript » Document » vlinkColor

Syntax:
document.vlinkColor = "colorinfo"

This property defines the color of any visited links in the document. The "colorinfo" argument is a string that can contain either the hexadecimal definition of the color or it's literal description.

This property defines the color of any visited links in the document. The "colorinfo" argument is a string that can contain either the hexadecimal definition of the color or its literal description. If you use the hex definition of a color it must be in the format rrggbb - for example, the hex value for the named color 'forest green' is '228B22'.

Examples

Code:
document.linkColor = "228B22"
document.linkColor = "forestgreen"
Explanation:

Both lines in the code do exactly the same thing, the first using the hex value of a color and the second using its name.