FF5 +中的window.opener.focus()问题 [英] window.opener.focus() problem in FF5+

查看:213
本文介绍了FF5 +中的window.opener.focus()问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开下一个代码的新窗口:
window.open(url,pageName1,menubar = 1,resizable = 1,scrollbars = 1,status = yes,width = 1050,身高= 820);

I'm opening new window with next code: window.open(url,pageName1,"menubar=1,resizable=1,scrollbars=1,status=yes,width=1050,height=820");

因此窗口不是模态的

在新窗口中我打电话:

if(window.opener)window.opener.focus();

在IE中,Chorme,FF3.6父窗口成为焦点,但不是在FF5或FF6中,我如何将焦点移动到父窗口?

in IE, Chorme, FF3.6 parent window become in focus, BUT not in FF5 or FF6, how I can move focus to parent window?

推荐答案

默认情况下,FF4 + prevernt窗口升高和降低,您可以在选项中启用:
工具 - >选项 - >内容 - >高级。 ..(在启用JavaScript行中) - >选中升高或降低窗口

FF4+ prevernt window raising and lower by default, you can enable in options: Tools->Options->Content->Advanced... (in "Enable JavaScript" row)->Check "Raise or lower windows"

这篇关于FF5 +中的window.opener.focus()问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆