是否可以判断用户是否最小化了我的页面或非活动选项卡? [英] Is it possible to tell if a user has my page minimized or the inactive tab?

查看:17
本文介绍了是否可以判断用户是否最小化了我的页面或非活动选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一些网页,想知道是否可以判断我的网页是否不是网络浏览器上的活动网页.我想知道我的页面是否已最小化或不是当前选项卡.我不是在询问特定语言,而是想知道是否有可能获得此类信息.

I am messing around with some web pages and was wondering if it is possible to tell if my page is not the active page on a web browser. I am looking to tell if my page is minimized or is not the current tab. I am not asking about a particular language, but more just wondering if it is possible to get this sort of information.

推荐答案

是的,使用 javascript 完全有可能.

Yes, its totally possible, with javascript.

查看这些答案:

判断网页是否有前台窗口焦点/is活动标签?

如何判断浏览器/选项卡是否处于活动状态

是有没有办法检测浏览器窗口当前是否处于活动状态?

这篇关于是否可以判断用户是否最小化了我的页面或非活动选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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