what is difference in using return before any function ex: "return Buy()" or "Buy()"
<p>I have noticed one of my friend using this.</p>

<pre><code>&lt;a href="#" onclick="return Buy();"&gt;» &lt;b class="font_bigger"&gt;&lt;span id="buy_title"&gt;Buy&lt;/span&gt; for &lt;span class="points_in" id="buy_value"&gt;$1,691&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;
</code></pre>

<p>And i have feel no changed if i use this.</p>

<pre><code>&lt;a href="#" onclick="Buy();"&gt;» &lt;b class="font_bigger"&gt;&lt;span id="buy_title"&gt;Buy&lt;/span&gt; for &lt;span class="points_in" id="buy_value"&gt;$1,691&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;
</code></pre>

<p>So can any one explain what is the difference in both?</p>

<p>Just curious to know why he always use return.</p>

<p>Thanks</p>
