submit() in Form Elements
<p>I noticed that you can call <code>submit()</code> in event handlers of form elements. For example, </p>

<pre><code>&lt;input id="myInput" type="button" onclick="submit()" value="Test" /&gt;
</code></pre>

<p>clicking the button generated by the code above will submit the form. The funny thing is, I can't call <code>submit()</code> outside the event handler. There is no <code>submit</code> member defined for the input element.(<code>document.getElementById("myInput").submit</code> is <code>undefined</code>.) So, where is this function defined, and where can I find a reference to this function?</p>
