[英]Firefox API to check if the tab is active
I recall there was a functionality announced for some of recent Firefox releases that lets the developer to check if the tab is active or not with JavaScript but I can't find it now on the web. 我记得最近发布的一些Firefox版本宣布了一项功能,该功能使开发人员可以使用JavaScript检查该选项卡是否处于活动状态,但现在我无法在网络上找到它。 Could you please give me the link to the page with more information about it?
您能给我链接到该页面的更多信息吗? I know I can check it more or less properly with focus/blur but want to try that FF feature out.
我知道我可以或多或少正确地检查焦点/模糊,但想尝试一下FF功能。
https://developer.mozilla.org/en/DOM/Using_the_Page_Visibility_API though note that this is about tabs being hidden not active . https://developer.mozilla.org/en/DOM/Using_the_Page_Visibility_API但请注意,这是关于标签被隐藏不活动 。 The difference matters for visible tabs in inactive windows.
区别在于非活动窗口中的可见选项卡。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.