What is the Difference between onclick and href="javascript:function name?
<p>Is there any difference between</p>

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

<p>and</p>

<pre><code>2 : &lt;a href="#" onclick="MyFunction()"&gt;Link2&lt;/a&gt;
</code></pre>

<p>?
Would one affect the page performance by any means ?</p>
