window.open returns null and fails in inline script but works from console
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 generated code: <script type="text/javascript"> //<![CDATA[ setTimeout(function() { //Attempt to fix the issue with timeout var _smarty_console = window.open("about:blank","md5hash","width=680,height=600,resizable,scrollbars=yes"); console.log(_smarty_console); //Trying to log it if(_smarty_console!=null) { _smarty_console.document.write("<!DOCTY... lots of HTML ...<\/html>\n"); _smarty_console.document.close(); } }, 5000); //]]> <