title: javascript submit() is not a function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/833032/submit-is-not-a-function-in-javascript">submit is not a function in javascript</a>  </p>
  </blockquote>
  
  
  
  <p>Why is the following basic javascript function giving me an error <code>document.getElementById("form").submit is not a function</code>. </p>
  
  <p>The only thing i have on a page is a form and this javascript function. I want he form to auto submit when page is accessed.</p>
  
  <pre><code>&lt;script&gt;
   window.onload = function(){
   document.getElementById('form').submit();
  }
  &lt;/script&gt;
  </code></pre>