window.blur()不适用于Firefox 4 [英] window.blur() not working with Firefox 4
问题描述
我有一个激活的功能,在当前浏览器窗口下打开一个新窗口作为弹出窗口。它与IE和FF的所有过去的版本工作正常,现在它已经停止工作。显然,Mozilla已经改变了FF 4的设置之一,以防止这种情况: http:// support。 mozilla.com/en-US/questions/806756
下面是我使用的代码:
(页面,mywindow,菜单栏= 1,可调整大小= 1,状态= 1,工具栏=如图1所示,位置= 1,目录= 1,滚动条= 1\" );
opener = myWin.blur();
$ b $ p
$ b
如何让这段代码在FF 4上工作?
看起来你不能控制这种行为...
http://support.mozilla.com/zh-CN/questions/806756 #answer-167267
I have a function that when activated opens a new window as a pop-under under the current browser window. It was working fine with all past version of IE and FF, now it has stopped working. Apparently Mozilla has changed one of the setting of FF 4 to prevent this: http://support.mozilla.com/en-US/questions/806756
Here is the code I am using:
function popup(page) {
var myWin = window.open(page,"mywindow","menubar=1,resizable=1,status=1,toolbar=1,location=1,directories=1,scrollbars=1");
opener = myWin.blur();
}
How can I get this code to work on FF 4?
Doesn't look like you have control over this behavior...
http://support.mozilla.com/en-US/questions/806756#answer-167267
这篇关于window.blur()不适用于Firefox 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!