how to make a pop-out for printing?
<p>Need to make a function that would open a popout with a div inheriting innerhtml from another div on that page.</p>

<p>For example, the initial div might have some sort of a table, therefor when the user presses the print button, this div would open in a new popout. :)</p>

<p>EDIT:</p>

<p>Thanks, got it working!</p>

<pre><code>function opentrint(  ) { 

var $toprint = $('#divToPrint').html();
myWin=window.open('','myWin','menubar,scrollbars,left=30px,top=40px,height=400px,width=600px');
myWin.document.write($toprint); 

}
</code></pre>
