window.blur() not working with Firefox 4

拜拜、爱过 提交于 2019-12-01 21:14:48

Doesn't look like you have control over this behavior...

http://support.mozilla.com/en-US/questions/806756#answer-167267

It seems to work if you make the popup create another child window, close it, then blur the popup window. Like so:

var win = window.open(...);
win.window.open('about:blank').close();
win.blur();
window.focus();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!