title: Asp .NET Button - OnClientClick="return function()" vs OnClientClick="function()"
body: <p>In an asp.net user control I have a button:</p>
  
  <pre><code>&lt;asp:Button ID="addButton" runat="server" Text="Add"  OnClientClick="return function()". 
  </code></pre>
  
  <p>I had written jquery code to hide a control( validationsummary) present in the page inside  function(). </p>
  
  <p>When I wrote "return function()" it behaved as I expected and the control got hidden. While when I wrote only "function"()" the control got hidden but reappeared. What exactly is the difference between the two?</p>