The onSubmit Event Handler doesn't work
<p>The following code is from 'JavaScript by Example Second Edition', but the Confirm window don't appear when I click Submit button. Why?
Are there some errors in sample code? </p>

<pre><code>&lt;html&gt;
    
    &lt;head&gt;
        &lt;title&gt;onSubmit Event Handler and Forms&lt;/title&gt;
        &lt;script type="test/JavaScript"&gt;
            function readySubmit() {
                if(confirm("Are you ready to submit your form? ")) {
                    return true;
                } else {
                    return false;
                }
            }
        &lt;/script&gt;
    &lt;/head&gt;
    
    &lt;body&gt;
        &lt;form action="cgi-bin/testform.cgi" method="post" onSubmit="return(readySubmit());"&gt;Enter your user id:
            &lt;input type="text" name="textbox" value="" /&gt;
            &lt;br /&gt;Type your password:
            &lt;input type="password" name="secret" /&gt;
            &lt;p&gt;
                &lt;input type="submit" /&gt;
        &lt;/form&gt;
    &lt;/body&gt;

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