title: On submit form, return false not working
body: <p>When I submit the form I got an alert message. When I accept the alert it will submit the form anyway. Returning false is ignored. 
  Onclick can not be used. I try with <code>var x = document.forms["form"]["fname"].value;</code>
  and still same. </p>
  
  <pre><code>&lt;form id="f" method="post" name="form" onsubmit="return validateForm();" action="#"&gt;
      &lt;input type="text" name="fname" id="test" /&gt;
      &lt;input type="submit" value="submit"/&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
          function validateForm() {
              var x = document.getElementById('test').value;
              if (x == null || x == 0 || x == "0") {
                  alert("Stop");
                  return false;
              }
          }
      &lt;/script&gt;
  </code></pre>