我有一个简单的页面:
<html>
<head>
<script type="text/javascript">
function popUnder() {
var adv = window.open('http://google.com', '_blank', 'status = 1, height = 600, width = 600, resizable = 1');
adv.blur();
window.focus();
}
</head>
<body onclick="javascript: popUnder();">
...
</body>
</html>但是pop-under在火狐9中不起作用。当dom.disable_window_flip ==为真时,在这个页面上https://bug369306.bugzilla.mozilla.org/attachment.cgi?id=296123所有的窗口都是弹出的。创建弹出窗口最简单、最正确的方法是什么?还是没有用window.open在火狐中创建弹出窗口的解决方案?
发布于 2012-02-17 23:39:53
此行为是在Firefox4中引入的。
这个workaround:https://gist.github.com/1021924仍然可以在FF10中工作。
https://stackoverflow.com/questions/8943766
复制相似问题