A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden below:

Document: hidden property - Web APIs

Document: hidden property

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.

Value

A Boolean value, true if the page is hidden, and false otherwise.

Examples
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