【问题标题】:What is the equivalent of window.createPopup() in Firefox Safari chrome etcFirefox Safari chrome 等中的 window.createPopup() 等价物是什么
【发布时间】:2011-03-13 17:42:07
【问题描述】:

似乎我不能在其他浏览器上使用 window.createpopup,因为它不受支持。我使用 window.createpopup 的原因是因为它可以从一个框架弹出并显示在同一页面上另一个框架的顶部。我正在使用框架集,所以这在其他类型的下拉菜单中是不可能的。还有什么我可以使用的东西可以实现相同的目标(ppup 或 dropdown 从一帧和另一帧顶部)?

编辑:

我没有将 iframe 用于框架集

这是我的框架集的样子

</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。编辑过的原帖
  • 那我很抱歉。 showDialog 或 showModalDialog 或 window.open 是您唯一的选择

标签: javascript firefox google-chrome safari


【解决方案1】:

我不确定这对你的情况是否有帮助 - 我没有那样尝试,但我已经实现了一个跨浏览器 window.createPopup(),它适用于所有主要浏览器:Firefox、IE、Chrome ,野生动物园。

这是我的文章,其中包含所有详细信息和所需的代码: http://extremedev.blogspot.com/2011/01/ie-windowcreatepopup-cross-browser.html

在此处留下评论,以便我知道它是否有帮助,否则,请告诉我问题出在哪里,我们将尝试找到解决方案。

【讨论】:

    猜你喜欢
    • 2011-02-17
    • 2014-05-08
    • 2021-06-19
    • 2014-06-12
    • 1970-01-01
    • 2022-11-28
    • 2012-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多