A very basic JavaScript question about the document.write function
<p>I'm new to JavaScript as well as jQuery. This is the only code I have on an otherwise blank page:</p>

<pre><code>&lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;
        $(document).ready(function() {

            document.write('Hello World');

        });
    &lt;/script&gt;
</code></pre>

<p>When I load the page in a browser (using FireFox) the status icon as well as the favicon area of the opened tab shows loading symbols, as if to indicate that the document.write function is being executed continuously in a loop.</p>

<p>Why is this? I'm merely trying to say "once the page is ready output to the screen the string Hello World ONCE". What's wrong here?</p>

<p>p.s. I noticed if I take out the document.ready portion of the code there is no loop. Not sure why the event ready handler is causing this issue.</p>
