title: Javascript function is not called in Google Chrome?
body: <p>I am trying to call a simple JavaScript function on the OnClientClick event, the function executes good in Firefox and IE10 but not at all working in Chrome and opera. I have checked the settings in Chrome V33 and Opera V15 and JavaScript is enabled in it.</p>
  
  <p>This is button declaration in .aspx page</p>
  
  <pre><code>&lt;asp:Button ID="Button2" runat="server" OnClientClick = "getValue()" OnClick="Button2_Click" Text="Label to Textbox" Width="135px" /&gt;
  </code></pre>
  
  <p>This is the button server side onClick event</p>
  
  <pre><code>protected void Button2_Click(object sender, EventArgs e)
  {
      string script = "alert(\"Hello!\");";
      ScriptManager.RegisterStartupScript(this, GetType(),"ServerControlScript", script, true);
  }
  </code></pre>
  
  <p>This is the function </p>
  
  <pre><code>document.getElementById('TextBox1').value = document.getElementById('Label2').innerHTML;
  alert("foo");
  </code></pre>
  
  <p>Any assistance will be appreciated, Thank you.</p>