title: Button onClick Event Handler Never Fires in Chrome Only
body: <p>I am working on an old ASP.NET WebForms application that has an .aspx page with the following control:</p>
  
  <pre><code>&lt;asp:Button ID="Budget_Approve" OnClick="Budget_Approve_Click" runat="server"
  Visible="True" Width="100" Height="30" Text="Approve"&gt;&lt;/asp:Button&gt;
  </code></pre>
  
  <p>The <code>Budget_Approve_Click</code> event handler is never being hit, and I am trying to determine why. I noticed when the page loads, this code gets executed to add some inline js to the <code>onclick</code> attribute:</p>
  
  <pre><code>Budget_Approve.Attributes.Add("onclick", "return confirm_approve();");
  </code></pre>
  
  <p>The HTML that gets rendered:</p>
  
  <pre><code>&lt;input type="submit" name="ctl00$mainContent$Budget_Approve" value="Approve"
  onclick="return confirm_approve();WebForm_DoPostBackWithOptions(new
  WebForm_PostBackOptions(&amp;quot;ctl00$mainContent$Budget_Approve&amp;quot;, 
  &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))"
  id="ctl00_mainContent_Budget_Approve" style="height:30px;width:100px;"&gt;
  </code></pre>
  
  <p>So when I click, I expect <code>confirm_approve()</code> to be executed. If it returns <code>true</code>, I expect a postback and for my event handler to fire. Debugging in Chrome, I find that <code>confirm_approve()</code> does indeed return <code>true</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/BrpbB.png" alt="javascript code"></p>
  
  <p>However, the postback never happens, and the <code>Budget_Approve_Click</code> event handler never gets hit. Why not?</p>
  
  <p><strong>Edit:</strong> I tried removing the line that adds the inline javascript code entirely. However, still no postback. The following HTML is rendered for the button:</p>
  
  <pre><code>&lt;input type="submit" name="ctl00$mainContent$Budget_Approve" 
  value="Approve"
  onclick="javascript:WebForm_DoPostBackWithOptions(new
  WebForm_PostBackOptions(&amp;quot;ctl00$mainContent$Budget_Approve&amp;quot;,
  &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))"
  id="ctl00_mainContent_Budget_Approve" style="height:30px;width:100px;" /&gt;
  </code></pre>
  
  <p><strong>Update:</strong> Discovered that the postback <strong>does work</strong> in IE, but still not Chrome. Are there any browser-specific settings or issues that could potentially cause this problem?</p>