Forum Moderators: open
The following demonstrates:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<HEAD>
<style type="text/css">
A
{font-weight:bold;
text-decoration:none;color:blue;}A:hover
{color:red;}
A.Aclicked
{color:black;}
A.Aclicked:hover
{color:green;background-color:yellow;}
</style>
<script type="text/javascript">
function changeHover(element)
{
element.className="Aclicked";
return false;
}
</script>
</HEAD>
<BODY>
<A href="http://whatever.com" onclick="return changeHover(this)">
Here's an example Anchor</a>
</body>
</html>