javascript print iframe doesn't work in firefox
<p>I have tested this in Chrome and all good, but Firefox is lazy.
Part of HTML in question:</p>

<pre><code>&lt;div id="print" style="display:none;"&gt;&lt;/div&gt;
</code></pre>

<p>And Javascript follows it like:</p>

<pre><code>$('.print').click(function(){
               printF($(this));
               return false;
            });



 function printF(dugme){
            $('#print').html("&lt;iframe src='http://example.comli.com/index.php/prijava/pogledaj/"+$(dugme).attr('name') +"' onLoad='this.contentWindow.print();'&gt;&lt;/iframe&gt;");
        };
</code></pre>

<p>Thank you</p>
