Problem defering HTML Print
<p>I'm printing a webpage using the javascript</p>

<pre><code>window.print();
</code></pre>

<p>whether enclosed in a document.ready or onload event inline the print dialog often pops up before the content is ready.</p>

<p>Ive tried this</p>

<pre><code>$(document).ready(function() {
        setTimeout(printPage(),200000);
        function printPage()
        {
            window.print();
        }
    });
</code></pre>

<p>To no avail, can anyone suggest a way to reliably defer printing until the content is ready</p>
