isBrowserTabFocused
Checks if the browser tab of the page is focused.
- Use the
Document.hiddenproperty, introduced by the Page Visibility API to check if the browser tab of the page is visible or hidden.
Checks if the browser tab of the page is focused.
Document.hidden property, introduced by the Page Visibility API to check if the browser tab of the page is visible or hidden.