title: javascript function is ignored
body: <p>I want a really simple thing to happen on my page, after the user submits the form, there must be a delay before the form is actually submitted, however it doesn't seem to work html form:</p>
  
  <pre><code>&lt;form action='index.php' method='get'&gt;
  &lt;input type='submit' value='Reset' name='resetBtn' onClick='PreSubmit(this.form)'&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>javascript function:</p>
  
  <pre><code>function PreSubmit(form) {
      var func = function () {
          form.submit();
      }
      setTimeout(func, 10000);    
  }
  </code></pre>
  
  <p>so I am really really new to javascript, but how I see it, onlick event must call this javascript function, it should wait 10 seconds and only then submit the form and update the page, however the form is submitted right away, why? and how do I make it wait before submitting? any kind of help would be appreciated</p>