I\'m using Smarty template system. One of its features is posibility to output script that generates debug information for every page. Here you can see an example of generat
Try the next command after window.open with timeout, for example:
var myWindow = window.open('foo','_blank','menubar=no, scrollbars=yes, top=10, width=800,height=600'); setTimeout( myWindow.onload=function(){this.document.body.innerHTML+='bar';}, 2000 );