I currently have a normal link like

<a href="http://sitepoint.com" class="link">sitepoint</a>
and when a user clicks on it I want to be able to change the "link" class to a different class. However, I don't want to add anything to the actual link html. Is it possible to do this using javascript without modifying the original link code?