
Originally Posted by
Medyman
The only way (that I know of) to do it is to clear the user's history. I don't recommend or condone doing that, but nonetheless it is an option.
which you cannot do with Javascript alone.
There is a way to accomplish what you would like, however it would disable all the default "color" styles for the anchor elements you apply it to.
What you would do is create a style that applies to all anchor tags within an specific element.
HTML Code:
<p class="ddlink"><a href="/path">LINK</a></p>
Code:
p.ddlink a:link, p.ddlink a:visited {
color: #0000ff;
}
the above would keep the color of the anchor text blue whether they visited that link or not.
now saying that, its generally not good coding practice to break the conventions of the web.
Bookmarks