Javascript focus()在使用Tab功能的IE7中运行不正常 [英] Javascript focus() doesn't function well in IE7 with Tab feature using

查看:50
本文介绍了Javascript focus()在使用Tab功能的IE7中运行不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是:


我无法使用focus()来关注我打开的标签


示例:


在开启者窗口上,


var tab = window.open(" www.microsoft.com "," Child_Tab","< LIST_OF_FEATURES>");


然后调用tab.focus()


无法关注打开的标签"Child_Tab"




推测原因:


可能是IE 7假设同一浏览器中的所有标签都在同一个窗口中。


虽然选项卡没有聚焦,但IE 7认为它的窗口是专注的。 (由于同一窗口中的其他标签已经聚焦)




问题:


有没有答案让我按需要关注标签?

解决方案

有人发现同样的问题吗?

My problem is that:

I can't use focus() to focus the tabs I have opened

Example:

On Opener Window,

var tab = window.open("www.microsoft.com", "Child_Tab", "<LIST_OF_FEATURES>");

then call tab.focus()

can't focus the opened tab "Child_Tab"

 

 

Guessed Reason:

May be IE 7 assume that all tabs in the same browser is in the same window.

Although the tab is not focused, IE 7 think that its window is focused. (Since other tab in the same window has been already focused)

 

 

Question:

Are there any answers to let me focus the tab as I want?

解决方案

Anyone find the same problem?


这篇关于Javascript focus()在使用Tab功能的IE7中运行不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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