title: imagebutton with onclientclick isn't firing onclick event
body: <p>I have an imagebutton with an postbackurl and an onclientclick script.  When i added the onclientclick code, if my javascript validation passes (aka returns true), the page just seems to perform a postback (the screen just seems to refresh itself), rather than post to the postbackurl.  Any ideas why this is happening?</p>
  
  <p>Sample:</p>
  
  <pre><code>&lt;asp:ImageButton ID="imgSendInfo" runat="server" SkinID="SendInfo" PostBackUrl="MyUrlOnAnotherSite" onClientClick="javascript:return onFormSubmit(this.form);return document.MM_returnValue" /&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>OK, so I decided to change what JS functions I'm calling now since calling Multiple functions definitely wasn't helping.  Here's my updated code.  All I'm doing now is validating a single textbox and returning true or false.  Even this simple function is causing the postback URL to never get called.  Could it have anything to do with the fact that I'm trying to call a function to return a true or false?</p>
  
  <p>My validation function:</p>
  
  <pre><code>function valForm() {
      if (document.getElementById('FName').value == '') {
          alert('no');
          return false;
      }
      else {
          alert('yes');
          return true;
      }
  }
  </code></pre>
  
  <p>My ImageButton:</p>
  
  <pre><code>&lt;asp:ImageButton ID="imgSendInfo" runat="server" SkinID="SendInfo" PostBackUrl="SetOnCodeBehind" onClientClick="javascript:return valForm();" /&gt;
  </code></pre>