Which is preferable, assuming we don't care about people who don't have JavaScript enabled?
<a href="#" onclick="executeSomething(); return false"></a>
Or
<a href="javascript:executeSomething()"></a>
Is there any difference?
Or there any other ways I'm missing besides attaching an event to the anchor element with a JavaScript library?