@wookieb,
wszystko się da, tylko czasami trzeba trochę więcej pokombinować

JS:
Kod
function f(elem){
alert('teraz coś się dzieje...');
document.location.href = elem.href;
}
HTML:
Kod
<a href="http://google.pl" onclick="f(this); return false;">CLICK ME!</a>