Hi guys, Need to make a function that would open a popout with a div inheriting innerhtml from another div on that page.
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. :)
EDIT:
Thanks, got it working!
function opentrint( ) {
var $toprint = $('#divToPrint').html();
myWin=window.open('','myWin','menubar,scrollbars,left=30px,top=40px,height=400px,width=600px');
myWin.document.write($toprint);
}