title: Stopping onclick from firing when onclientclick is false?
body: <p>Is it possible to use the <code>onclientclick</code> property of a button to do a clientside check.  If the check returns <code>true</code>, then fire the <code>onclick</code> event.  If the clientside check returns <code>false</code>, don't fire the <code>onclick</code> event.</p>
  
  <p>Is that possible?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>These 2 work:</p>
  
  <pre><code>Stops the form from submitting:
  OnClientClick="return false;"
  </code></pre>
  
  <hr>
  
  <pre><code>Allows the form to submit:
  OnClientClick="return true;"
  </code></pre>
  
  <hr>
  
  <p>The next 2 do not work:</p>
  
  <pre><code>// in js script tag
  function mycheck() {
      return false;
  }
  
  // in asp:button tag
  OnClientClick="return mycheck();"
  </code></pre>
  
  <hr>
  
  <pre><code>// in js script tag
  function mycheck() {
      return true;
  }
  
  // in asp:button tag
  OnClientClick="return mycheck();"
  </code></pre>
  
  <p>It submits the form both times.</p>
  
  <p>Why is that?</p>