Firefox Safari chrome等中的window.createPopup()是什么 [英] What is the equivalent of window.createPopup() in Firefox Safari chrome etc

查看:592
本文介绍了Firefox Safari chrome等中的window.createPopup()是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来我不能在其他浏览器上使用window.createpopup,因为它不被支持。之所以我使用window.createpopup是因为它可以从一个框架中弹出并显示在另一个框架上的同一页面上。我正在使用框架,所以这是不可能的其他类型的下拉菜单。还有什么我可以使用哪些可以实现相同的目标(ppup或从一个框架,并在另一个顶部的下拉列表)?

编辑:



我不使用iframe作为frameset



这里是我的框架样子

 < /头> 
< frameset id =frameMainrows =84,*framespacing =0>
< frame src =pageHeader.htmlid =mailname =mailframeborder =0border =0marginwidth =0marginheight =0noresize =noresize滚动= 否/>
< frameset id =frameSetcols =126,*framespacing =0>
< frame src =empty.htmid =mainname =mainframeborder =0border =0noresize =noresizescrolling =yes/>
< / frameset>
< / frameset>
< / html>

我希望我的下拉菜单在'frameMain'中显示,而不是在其后面

解决方案

我不确定这是否有助于您的情况 - 我没有这样做,但我已经实施一个跨浏览器的window.createPopup(),可以在所有的主流浏览器上运行:Firefox,IE,Chrome,Safari。
$ b

这里是我所有的细节和需要的代码:
http://extremedev.blogspot。 com / 2011/01 / ie-windowcreatepopup-cross-browser.html



在那里留言让我知道是否有帮助,否则,告诉我有什么问题,我们会尽力找到解决办法。


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)?

edit:

I am not using iframes for frameset

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

解决方案

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.

Here is my article with all the details and the code needed: 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.

这篇关于Firefox Safari chrome等中的window.createPopup()是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆