for loop goes infinite within the ready function
<pre><code>    $(document).ready(function() {
        for (var i=0; i&lt;20; i++) {
        document.write('hello world');
    }
    });
</code></pre>

<p>in this code for goes infinite. so what's the reason of that?</p>
