在Firefox、Safari、Chrome等浏览器中,window.createPopup()的等效方法是什么?

3
似乎我在其他浏览器上无法使用 window.createpopup,因为它不受支持。我之所以使用 window.createpopup 是因为它可以从一个框架弹出并显示在同一页的另一个框架之上。我正在使用 frameset,因此对于其他类型的下拉菜单来说,这是不可能的。还有其他什么可以实现相同目标的东西吗(从一个框架中弹出或下拉,并显示在另一个框架之上)?
编辑:
我没有使用 iframes 来制作 frameset
以下是我的 frameset 的样子
</head>
    <frameset id="frameMain" rows="84,*" framespacing="0">
       <frame src="pageHeader.html" id="mail" name="mail" frameborder="0" border="0" marginwidth="0" marginheight="0" noresize="noresize" scrolling="no"/>
       <frameset id="frameSet" cols="126,*" framespacing="0">
           <frame src="page2.html" id="leftnav" name="leftnav" frameborder="0" border="0" marginwidth="0" marginheight="0" noresize="noresize" scrolling="no"/>
           <frame src="empty.htm" id="main" name="main" frameborder="0" border="0" noresize="noresize" scrolling="yes"/>
       </frameset>
    </frameset>
</html>

我希望我的下拉菜单出现在'frameMain'中,并显示在其他框架的上方,而不是在它们后面。

我没有使用Iframe。编辑了原始帖子。 - 124697
那我很抱歉。showDialog、showModalDialog 或 window.open 是你唯一的选择。 - mplungjan
1个回答

2
我不确定这是否对您有帮助 - 我没有尝试过这样做,但我已经实现了一个跨浏览器的window.createPopup(),可以在所有主要浏览器上使用:Firefox、IE、Chrome、Safari。
这是我的文章,其中包含所有细节和所需的代码: http://extremedev.blogspot.com/2011/01/ie-windowcreatepopup-cross-browser.html 请在那里留下评论,以便我知道是否有帮助,否则,请告诉我问题所在,我们将努力找到解决方案。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接