Hi, I have some code like
var windowObject = window.open('','windowObject','arguments...');
windowObject.document.write("<html><body onload="alert(1);window.print();alert(2);"><div>some html</div></body></html>");
The problem is that everything works except the window.print event (on ie, on firefox, it's working).
Is there a workaround?
Thanks in advance, Gaurav