Baseline Widely available
The Document.hidden
read-only property returns a Boolean value indicating if the page is considered hidden or not.
The Document.visibilityState
property provides an alternative way to determine whether the page is hidden.
A Boolean value, true
if the page is hidden, and false
otherwise.
document.addEventListener("visibilitychange", () => {
console.log(document.hidden);
// Modify behaviorâ¦
});
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3