Language agnostic 是否有可靠的方法检测用户是否未使用web应用程序?

Language agnostic 是否有可靠的方法检测用户是否未使用web应用程序?,language-agnostic,Language Agnostic,有没有可靠的方法可以知道网页是否有用户的焦点?例如,他们是在另一个选项卡中还是在使用另一个程序?类似的插件可能会帮助你完成任务 jQuery.nap is a plugin that detects when the user is "taking a nap" and executes the defined functions when the user "falls asleep" and "wakes up" 也检查一下 我希望这对你有帮助 杰罗姆·瓦格纳这是可能的,但我不确定是否可行

有没有可靠的方法可以知道网页是否有用户的焦点?例如,他们是在另一个选项卡中还是在使用另一个程序?

类似的插件可能会帮助你完成任务

jQuery.nap is a plugin that detects when the user is "taking a nap"
and executes the defined functions when the user "falls asleep"
and "wakes up"
也检查一下

我希望这对你有帮助


杰罗姆·瓦格纳

这是可能的,但我不确定是否可行。您可以在每个用户单击/聚焦时发送一个AJAX请求,告诉后端用户做了什么。但这将导致客户端浏览器和服务器的开销。

我不需要知道,服务器端。