Subject says it all, really. I want to have a script which iterates over all the links on a page and sets the visited and unvisited colors separately but I don't find anything in the DOM or CSS references I use that tells me what value to set. TIA.
| SitePoint Sponsor |
Subject says it all, really. I want to have a script which iterates over all the links on a page and sets the visited and unvisited colors separately but I don't find anything in the DOM or CSS references I use that tells me what value to set. TIA.

I know you can do it with css:Any specific reason you want to use JavaScript to do this?Code:a:link {color:red} a:visited {color:green}
Bookmarks