Javascript https iframe中的window.open不作为弹出窗口打开

Javascript https iframe中的window.open不作为弹出窗口打开,javascript,html,iframe,microsoft-edge,Javascript,Html,Iframe,Microsoft Edge,我有一个非常简单的按钮,可以打开一个登录弹出窗口。该按钮位于iframe内。按钮位于与主页不同的网站上。当在我的dev/stage站点上运行此功能时,所有操作都使用http,一切正常,登录时不会弹出菜单栏或其他内容。一旦我复制到生产环境并尝试通过https(主页仍然是http)加载iframe内容,Microsoft Edge就会忽略我的设置以不显示菜单栏等,并在另一个会话中在正常浏览器窗口中打开该按钮。这在IE、Chrome等浏览器中运行良好。我找不到任何发布的内容表明Edge在http页面中

我有一个非常简单的按钮,可以打开一个登录弹出窗口。该按钮位于iframe内。按钮位于与主页不同的网站上。当在我的dev/stage站点上运行此功能时,所有操作都使用http,一切正常,登录时不会弹出菜单栏或其他内容。一旦我复制到生产环境并尝试通过https(主页仍然是http)加载iframe内容,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>

亚利桑那州的州栏::登录状态
函数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,resizeable=yes,top=“+((screen.availHeight/2)-150)+”,left=“+((screen.availWidth/2)-250));
loginWin.opener=self;
loginWin.focus();
}

不是专家,但
iframe
已被弃用。是的,但当您仍必须支持旧系统时,iframe是必需的。实际上,根据MS Edge网站:@conniedcinko您可以链接到显示问题的实时资源吗?@iharob未弃用。你可能在想。