javascript Firefox Safari chrome 等中的 window.createPopup() 等价物是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5260811/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the equivalent of window.createPopup() in Firefox Safari chrome etc
提问by code511788465541441
It seems that I can't use window.createpopup on other browsers because its not supported. the reason why i was using window.createpopup is because it can popup from one frame and show on top of another frame on the same page. I am using frameset, so this wasnt possible with other types of dropdown menues. is there anything else i can use which could achieve the same objective (ppup or dropdown from one frame and on top of another)?
似乎我不能在其他浏览器上使用 window.createpopup 因为它不受支持。我使用 window.createpopup 的原因是它可以从一个框架中弹出并显示在同一页面上的另一个框架之上。我正在使用框架集,所以这在其他类型的下拉菜单中是不可能的。还有什么我可以使用的东西可以实现相同的目标(从一个框架到另一个框架的 ppup 或下拉菜单)?
edit:
编辑:
I am not using iframes for frameset
我没有将 iframe 用于框架集
here is how my frameset looks like
这是我的框架集的样子
</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>
I want my dropdown menuto be in 'frameMain' and show over the other frames, and not behind them
我希望我的下拉菜单在 'frameMain' 中并显示在其他框架上,而不是在它们后面
采纳答案by Roman
I am not sure if this will help in your case - I didn't try it like that, but I have implemented a cross browser window.createPopup(), that will work on all major browsers: Firefox, IE, Chrome, Safari.
我不确定这对你的情况是否有帮助 - 我没有那样尝试,但我已经实现了一个跨浏览器 window.createPopup(),它适用于所有主要浏览器:Firefox、IE、Chrome、Safari。
Here is my article with all the details and the code needed: http://extremedev.blogspot.com/2011/01/ie-windowcreatepopup-cross-browser.html
这是我的文章,其中包含所有详细信息和所需的代码:http: //extremedev.blogspot.com/2011/01/ie-windowcreatepopup-cross-browser.html
Leave a comment there so that I know if it helped, otherwise, tell me what is the problem and we will try to find a solution.
在那里发表评论,以便我知道它是否有帮助,否则,请告诉我是什么问题,我们将尝试找到解决方案。

