document.linkColor
JavaScript 1.0+, ECMAScript 1.0+, JScript 1.0+ Nav2+, IE 3+ Syntax
document.linkColor
Description
The linkColor property specifies the color of unvisited links. 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 6 digits that follow the pattern "RRGGBB."
Example
Listing 7.143 sets the unvisited links color to green for all links on the page only if they are placed before the <script> tags.
Listing 7.143 Setting Link Colors with the linkColor Property
<html> <a href="myGreenPage.html">The Green Site</a><br> <script language="JavaScript"> <!--Hide //Set the unvisited links color to green. document.linkColor="00ff00"; //Hide ... |
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.