JavaScript innerHTML not working
<p>Here is a very simple program and the output should be <code>s</code> and JavaScript but I am only getting <code>a</code>.</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;script type="text/javascript"&gt;
          document.getElementById("ma").innerHTML="JavaScript";
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1 id="ma"&gt;s&lt;/h1&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
