javascript in html head, innerhtml not working?
<pre><code> &lt;html&gt;
 &lt;head&gt;
 &lt;script type="text/javascript"&gt;
 document.getElementById("eee").innerHTML = "7777";
 &lt;/script&gt;


 &lt;/head&gt;
 &lt;body&gt;
 &lt;p id="eee"&gt;aa&lt;/p&gt;

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

<p>why does the innerHTML not work in the head, but it does work in the body? Excuse the beginners question but last time i used javascript a year ago this was not a problem at all.</p>
