title: Uncaught TypeError: document.getElementById(...).submit is not a function
body: <p>Why doesn't the following code work?</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;form id="myForm" action="http://example.com" method="POST"&gt;
  &lt;input type="text" name="engine" value="v2.5" /&gt;
  &lt;input type="text" name="verify" value="2" /&gt;
  &lt;input type="text" name="submit" value="Save" /&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
  document.getElementById("myForm").submit();
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>Uncaught TypeError: document.getElementById(...).submit is not a function
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>I want to send a POST parameter named submit through forms, how can this be done automatically?</p>