https iframe中的window.open没有弹出打开

时间:2016-01-04 22:54:42

标签: javascript html iframe microsoft-edge

我有一个非常简单的按钮,可以打开一个登录弹出窗口。该按钮位于iframe内。该按钮位于与主页不同的网站上。在我的开发/舞台网站上运行时,所有使用http,都按预期工作,登录弹出没有菜单栏或额外的东西。一旦我复制到生产并尝试通过https加载iframe内容(主页仍为http),Microsoft Edge将忽略我的设置以不显示菜单栏等,并在另一个会话中在普通浏览器窗口中打开按钮。这在IE,Chrome等中运行良好。我找不到任何已发布的内容,表示Edge正在为跨浏览器执行不同的操作,并在http页面内执行https iframed。

以下是iframe的结果html及其内容:

<iframe name="logInOut_btn_iframe" width="200" height="32" class="btn-login-iFrame" id="logInOut_btn_iframe" src="https://www.website.org/logInOut_btn_iFramed.html" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes">

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="en" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head>
        <title>State Bar of Arizona :: Login Status</title>
        <link href="/favicon.ico" rel="SHORTCUT ICON">

        <script language="JavaScript" type="text/javascript">
            function loginPop() {
                var loginWin = window.open("/loginPop.cfm" + decodeURIComponent( document.location.hash ), "SBA_Login" + Math.random(), config= "width=500,height=315,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,resizable=yes,top=" + ((screen.availHeight/2)-150) + ",left=" + ((screen.availWidth/2)-250));
                loginWin.opener = self;
                loginWin.focus();
            }
        </script>
    </head>

    <body>
        <a href="javascript:loginPop();">Member Login</a>
    </body>
    </html>
</iframe>

0 个答案:

没有答案
相关问题