vanilla JavaScript set style on body
<p>Why does this not work?</p>

<p>Using vanilla JavaScript to set the style on body tag?</p>

<pre><code>&lt;html&gt;
   &lt;body style="display:none;"&gt;
       test
   &lt;/body&gt;
   &lt;script&gt;
       document.getElementsByTagName("body").style.display = "block";
   &lt;/script&gt;
&lt;/html&gt;
</code></pre>
