Javascript 当主线程忙时,Window.open抛出并出现错误“2147417851”->“服务器抛出异常”
我正在使用以下代码打开一个新窗口:Javascript 当主线程忙时,Window.open抛出并出现错误“2147417851”->“服务器抛出异常”,javascript,activex,Javascript,Activex,我正在使用以下代码打开一个新窗口: function WindowOpen() { try { var newWindow = window.open('test.html', "DUMMY", "resizable=yes,toolbar=no,scrollbars=yes,status=yes,top=0,left=0,width=500,height=500"); newWindow.focus(); } catch (ex) {
function WindowOpen() {
try {
var newWindow = window.open('test.html', "DUMMY", "resizable=yes,toolbar=no,scrollbars=yes,status=yes,top=0,left=0,width=500,height=500");
newWindow.focus();
}
catch (ex) {
alert("Exeception: " + ex);
}
}
test.html正在打开一个活动的X控件
问题:
当test.html打开活动的x控件时,它会阻止containertest.html。现在,当我调用WindowOpen时,如果我多次调用后续的循环链接,它会在第二次调用时抛出下面的异常
2147417851'->服务器引发异常
如果我无法表达这个问题,请道歉