【问题标题】:IE ,window.open has to open different webpages of same domain in different windowsIE ,window.open 必须在不同窗口中打开同一域的不同网页
【发布时间】:2011-12-25 01:36:47
【问题描述】:

我有 html 页面说 abc.htm 它有 2 个锚点,分别指向 link1.htm 和 link2.htm。代码看起来像这样

现在我的要求是当我单击 GOTOLink1 时,必须使用 link1.htm 打开新窗口。 没有关闭它,现在点击 GOTOLink2,它必须在新窗口中打开 link2.htm 而不会干扰第一个窗口。 现在打开了 3 个窗口,如果我单击 GOTOLink1,它必须聚焦现有窗口(不必打开新窗口),对于 GOTOLink2 也是如此。 最后,我的主要要求是 1.新窗口不存在必须打开 2.如果窗口存在,则必须聚焦现有窗口。 IE 在上述 2 个功能上都失败了。 FF 仅在功能 1 中成功。 请帮我。我需要 IE,FF,Crome 的兼容性

【问题讨论】:

    标签: internet-explorer firefox window.open new-window


    【解决方案1】:

    给出 distict windowName 而不是 null。 例如:

    函数(url,distictName) { Window.Open(URL, distictName, "location=no,scrollbars=yes,width=1000,height=700,resizable=yes"); }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-07
      • 2011-09-28
      • 1970-01-01
      • 2010-09-21
      • 2015-09-30
      • 1970-01-01
      相关资源
      最近更新 更多