asp linkbutton cssclass selecting using javascript
<p>I have three <code>linkbuttons</code> when the user selects the current link it should be red.but at present it even makes the visited link also red which should not be the case.can any one help regarding this? </p>

<pre><code>&lt;li&gt;
&lt;asp:LinkButton ID="lnkCat1" runat="server" 
OnClick="lnkCat1_Click" CssClass="mylink" 
OnClientClick="return changeColor();"&gt;&lt;/asp:LinkButton&gt;&lt;/li&gt;

&lt;script type="text/javascript"&gt;
  function changeColor(e) {
        e.style.color = "red";
        }              
  }
&lt;/script&gt;
</code></pre>
