带有沙箱的iframe不允许在Firefox中弹出新窗口/标签

时间:2014-01-22 07:15:21

标签: html5 iframe sandbox

我正在iFrame中打开一个网页。

我在沙盒属性中设置了属性以允许弹出窗口和脚本。

iFrame中显示的网页应该在点击链接时创建一个新的标签/窗口或窗口弹出窗口。

我的iframe:

<html>
<body>

<iframe 
    style="border: 0; width: 100%; height: 1000px;"
    src="http://www.textfixer.com/html/jquery-pop-up-window-example.php" 
    sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
</iframe>

</body>
</html>

链接在IE中运行良好,但在Firefox中运行不正常。我需要为此找到解决方案。

感谢任何帮助。

2 个答案:

答案 0 :(得分:3)

自Firefox 27以来,现在支持

allow-popups

答案 1 :(得分:0)

firefox:https://bugzilla.mozilla.org/show_bug.cgi?id=766282

不支持

allow-popup