title: document.write not working in html
body: <p>I am try to write inside html document.
  this is my javascript code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;document.write("Hello World!")&lt;/script&gt;
  </code></pre>
  
  <p>I am working with chrome and get the following error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object # has no method 'write'</p>
  </blockquote>
  
  <p>I tried <code>alert</code> method and it worked.</p>
  
  <p>EDIT: this is part of a project in scala/lift that also uses jquery if that may hint something. I suspect document object is redefined. is there a way to know that / to access the original one?</p>