<a href="" onclick="someFunction(this)">инфа</a>
function someFunction(obj) { obj.style.color = 'red'; }