can't call javascript in <script>
<p>This is an extremely simple question but possibly so simple I cannot find the answer online.  I am first assuming that this is correct</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script language="javascript" type="text/javascript"&gt;
function sayit(){
alert('hello');
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;button onclick="sayit()"&gt;Say it&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>This code should work shouldn't it?</p>
