document.vlinkColor
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+ Syntax
document.vlinkColor
Description
The vlinkColor property specifies the color of visited 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.198 sets the visited links color to green for all links on the page only if they are placed before the <script> tags.
Listing 7.198 Setting the Visited Links Color with the vLinkColor Property
<html> <a href="myGreenPage.html">The Green Site</a><br> <script language="JavaScript"> <!-- Hide //Set the visited links color to green. document.vlinkColor="00ff00"; //Hide End ---> ... |
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.