How can I listen to document.hasFocus() without using an interval?

前端 未结 0 1767
时光说笑
时光说笑 2021-01-21 07:33

I want to check if the user changed the view of the current tab, that\'s why I am testing with if condition on document.hasFocus() and if it\'s equal t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题