[英]Firefox Loading bottom screen never stops
I'm trying to open something in Firefox with window.open() and when I load the window, the loading screen never stops. 我正在尝试使用window.open()在Firefox中打开某些内容,并且在加载窗口时,加载屏幕永远不会停止。 I still don't understand why.
我还是不明白为什么。 Please kindly advice.
请指教。
Screenshot : http://s3.postimg.org/eq0r6rr03/screenshot.png 屏幕截图 : http : //s3.postimg.org/eq0r6rr03/screenshot.png
My Code: 我的代码:
var html = this.compilePageHtml(); //We get some HTML code
this._previewWindow = window.open("about:blank", "PreviewWindow","width=320, height=570, scrollbars=yes" );
this._previewWindow.document.write(html); //Loads HTML in new window popup
What is causing this issue? 是什么导致此问题? On Chrome, Safari it works fine
在Chrome,Safari上运行正常
Thanks, - R 谢谢-R
我发现问题出在document.open(),我需要关闭document.close()才能停止传输。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.