title: HTML form still submit when I return false from onsubmit?
body: <p>here is html form :</p>
  
  <pre><code> &lt;form id="form1" name="form1" action="toSQL.php" method="get" accept-charset="utf-8"   onsubmit="return submitTest();"&gt;
  &lt;p&gt;&lt;input type="text" name="Cliname" id="textfield" maxlength = "10" /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;textarea name="message" id="message" maxlength = "20" &gt;&lt;/textarea&gt;
  &lt;input type="submit" value="submit" id="btn"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>here is js:</p>
  
  <pre><code>&lt;script type="text/javascript" &gt; 
  function submitTest() { 
     if ( form1.textfield.value == "" ) {
         alert( "enter your name!!" ) ;
         form1.name.focus();
         return false ;
     } 
  
     if (form1.message.value == "" ) {
         alert( "type the content!!" ) ;
         form1.message.focus();
        return false ;
     } 
  } 
  &lt;/script&gt; 
  </code></pre>
  
  <p>alert is showed but it still send the form to sql.
  i have no idea :( </p>