title: Problem in form submit through javascript
body: <p>I am submitting form via javascript by using 'document.FormName.submit()' . But this is giving me error of 'submit is not a function'. I m using IE8</p>
  
  <pre><code>&lt;script typr="text/javascript"&gt;
  
  function submitForm()
  {
    document.theForm.submit()
  }
  &lt;/script&gt;
  &lt;body&gt;
  &lt;form name="theForm"  method="post"&gt;
  &lt;input type="text" name= "name"&gt;
  &lt;input type="button" name="submit" value="submit" onclick="submitForm()"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Please help me ? </p>