Executing JavaScript when a link is clicked
<p>Which is preferable, assuming we don't care about people who don't have JavaScript enabled?</p>

<pre><code>&lt;a href="#" onclick="executeSomething(); return false"&gt;&lt;/a&gt;
</code></pre>

<p>Or</p>

<pre><code>&lt;a href="javascript:executeSomething()"&gt;&lt;/a&gt;
</code></pre>

<p>Is there any difference? </p>

<p>Or there any other ways I'm missing besides attaching an event to the anchor element with a JavaScript library?</p>
