FF keeps spinning after document.write()
<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;script type="text/javascript" &gt;
       function fn() {
       document.write("Hello there!!!");
       }

    &lt;/script&gt;
  &lt;/head&gt;

   &lt;body&gt;
      &lt;button onclick="fn()"&gt;click&lt;/button&gt;
   &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>After clicking the button , FF keeps on spinning (11.0), while as if I directly call the fn() without wiring it to the button , it works fine.Could anyone please look into this ?</p>
