开发者

Refresh a page only when the browser is not minimized and the tab is active

开发者 https://www.devze.com 2023-01-10 20:24 出处:网络
Could you tell me how to do an autorefresh (every minute) on a page. The refresh should only occur when the browser is not minimized and the tab is active.

Could you tell me how to do an autorefresh (every minute) on a page.

The refresh should only occur when the browser is not minimized and the tab is active.

When the browser is restored(unminimized) do a refresh, if the page with the re开发者_Python百科fresh is active.

Example: I have 2 tabs, one on "YouTube" and the other on myApplication, there is a refresh only if the myApplication's tab is active.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号