title: Append some HTML into the HEAD tag?
body: <p>I want to add some style to head tag in html page using javascript.</p>
  
  <pre><code>var h = document.getElementsByTagName('head').item(0);
  h.innerHTML += '&lt;style&gt;a{font-size:100px;}&lt;/style&gt;';
  </code></pre>
  
  <p>But when I run this code in IE8 I see this error message:
  <em>Could not set the innerHTML property. Invalid target element for this operation.</em></p>
  
  <p>Any ideas?</p>