Document: linkColor property - Web APIs | MDN

Value

A string representing the color as a word (e.g., red) or hexadecimal value (e.g., #ff0000).

When set to the null value, that null value is converted to the empty string (""), so document.linkColor = null is equivalent to document.linkColor = "".

Examples

js

document.linkColor = "blue";

Specifications

Specification
HTML
# dom-document-linkcolor

Browser compatibility

The default value for this property in Mozilla Firefox is blue (#0000ee in hexadecimal).

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.