title: Redirect on form's submission with window.location.href
body: <p>Trying out this simple code, I am amazed it didn't work, here we go : </p>
  
  <pre><code>&lt;form method="get" action="" &gt;
      &lt;input type="submit" value="validate" onclick="redirect(); alertIt(); "/&gt;
  &lt;/form&gt;
  &lt;script&gt;
      function redirect(){
         window.location.href = "test.html" ;
      }
  &lt;/script&gt;
  &lt;script&gt;
  function alertIt(){
     alert("redirect");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>The code is just supposed to redirect to "test.html" on click of the submit button, which it fails to do. On the other hand : alertIt() works fine... My question is the following : does event handeling into a form have some special rules I should know about ?</p>