Menu
Hi!
I have a javascript function thath allow me to print a page of my site.
Everithiyng is ok whit firefox and IE. My proble is with chrome and print preview.
At first time print preview is white. If I do f5 (refresh of my page) preview is ok.
Can you help me to find a solution?
I use:
var WinPrint = window.open(”,”,’left=0,top=0,width=’ + width +’,height=’ + height + ‘,toolbar=no,scrollbars=yes,status=no,resizable=yes’);
WinPrint.document.write(contenuto);
WinPrint.focus();
WinPrint.print();
the problem does not change if i set timeout:
setTimeout(WinPrint.print(), 10000);