title: Why would the following Javascript on Google Sites work with Firefox and not Chrome?
body: <p>I wanted to ask a general question and share my experience using Google Sites and Javascript. Hopefully it will save others the time and grief.</p>
  
  <p>Javascript from <a href="https://stackoverflow.com/a/14781022/6088382">https://stackoverflow.com/a/14781022/6088382</a> was used and inserted into an HTML Box on my Google Sites test page <a href="https://sites.google.com/site/woogietest/" rel="nofollow noreferrer">https://sites.google.com/site/woogietest/</a>.</p>
  
  <pre><code>&lt;script&gt;
    function calcul(){
      var x = parseFloat(document.getElementById("value1").value);
      var y = parseFloat(document.getElementById("value2").value);
      document.getElementById("answer").innerHTML=x+y;
    }
  &lt;/script&gt;
  
  &lt;form action="" id="nothing"&gt;
    &lt;input type="text" id="value1"&gt;
    &lt;input type="text" id="value2"&gt;
    &lt;input type="button" value="Calculate" id="but" onclick="calcul()" /&gt;
  &lt;/form&gt;
  
  &lt;p id="answer"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Using Chrome 50.0.2661.37 beta-m (64-bit) (conditions tested: browsing normally, disabling extensions, and in incognito mode) when I enter two numbers and press Calculate nothing happens.</p>
  
  <p>Using Firefox 45.0.1 when I enter two numbers and press Calculate the code is executed properly.</p>
  
  <p>The code works using IE11 too! </p>
  
  <p>What am I doing wrong on Google Sites in Chrome? Should I avoid Chrome for Google Sites/Javascript development?</p>