窗口弹出窗口-如何使window.blur()或window.focus()在FireFox 4中工作? [英] Window popups - how to get window.blur() or window.focus() to work in FireFox 4?
问题描述
我知道FF4不允许使用window.blur()
,除非在FF配置中启用了升高或降低窗口"设置.简单地忽略该事件.
I'm aware that FF4 doesn't allow the use of window.blur()
unless "Raise or lower window" setting is enabled in the FF configuration. It simple ignores the event.
我知道,即使关闭了此设置,某些站点仍可以设法打开一个弹出窗口并保持对当前窗口的关注.他们如何实现这一目标?
I'm aware that some site still manage to open a pop-up window and keep focus on your current window, even when this setting is switched off. How do they achieve this?
此外,当两个页面位于同一域中时,我不明白为什么.blur()和.focus()不起作用.根据 http://support.mozilla.com/zh-CN/questions /806756#answer-167267 应该可以.
Additionally, I don't understand why .blur() and .focus() doesn't work when both pages reside on the same domain. According to http://support.mozilla.com/en-US/questions/806756#answer-167267 this should work.