title: Firefox will not validate form data
body: <p>The following simple form with javascript with onclick button does not work in Firefox (I have version 7) but works fine in IE, Chrome, and Safari.
  What am I missing?</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
      function result() {
          alert(calc.input.value);
          }
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form name="calc" action=""&gt;
      &lt;input class="cInput" type="text" name="input" size="16" /&gt;&lt;br/&gt;
      &lt;input type="button" class="cButton" name="seven" value="1" onclick="calc.input.value += '1'" /&gt;
      &lt;input type="button" class="cButton" name="equal" value="=" onclick="result()" /&gt;&lt;br/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>