仅当浏览器未最小化且选项卡处于活动状态时刷新页面

发布于 2024-09-12 15:06:33 字数 196 浏览 2 评论 0原文

您能告诉我如何在页面上进行自动刷新(每分钟)吗?

仅当浏览器未最小化且选项卡处于活动状态时才应进行刷新。
当浏览器恢复(未最小化)时,如果刷新的页面处于活动状态,请进行刷新。

示例:我有 2 个选项卡,一个在“YouTube”上,另一个在 myApplication 上,仅当 myApplication 的选项卡处于活动状态时才会刷新。

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 refresh 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文