Did <input type=submit /> uses javascript behind the scenes
<p>Did this example of type="submit" have javascript behind the scenes?</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;body&gt;
    &lt;form action="process.php" method="post"&gt;
        Username: &lt;input type="text" name="username" value=""/&gt;&lt;br /&gt;
        Password: &lt;input type="text" name="username" value=""/&gt;&lt;br /&gt;
        &lt;input type="submit" value="Submit"/&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p></p>

<p><br/><br/>
Because the other way to submit your data inputs into server is like this.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;script&gt;
        function submit(form){
            form.submit();
        }
    &lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
    &lt;form action="process.php" method="post"&gt;
        Username: &lt;input type="text" name="username" value=""/&gt;&lt;br /&gt;
        Password: &lt;input type="text" name="username" value=""/&gt;&lt;br /&gt;
        &lt;input type="button" value="Submit" onclick="submit(this.form);" /&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p></p>

<p><br/><br/>
If so then we dont need javascript to send data into server?? am i right?</p>
