window.open终止了通用应用程序

时间:2016-01-20 13:47:07

标签: uwp winjs window.open

我正在使用WinJS创建一个Universial Windows 10应用程序。但是,当我调用函数window.open时,我的应用程序总是崩溃。这是代码:

ref = window.open(authorizationUri,'_ blank','location = yes')

        if (!ref) {
            deferred.reject(new Microsoft.Utility.Exception('The logon dialog was blocked by popup blocker'));
        } else {
            ref.addEventListener('loadstart', onRedirect);
            if (window["tinyHippos"]) {
                window["__rippleFireEvent"] = onRedirect;
            }
        }

任何人都可以帮助我吗?非常感谢!!!

1 个答案:

答案 0 :(得分:0)

UWP不支持

window.open。以下链接显示了这一点 HTML and DOM API changes list (HTML)