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/UserActivation/isActive below:

UserActivation: isActive property - Web APIs

UserActivation: isActive property

Baseline 2023

Newly available

The read-only isActive property of the UserActivation interface indicates whether the current window has transient user activation.

Value

A boolean.

Examples Checking if a user gesture was recently performed

Use the isActive property to check whether the user is currently interacting with the page.

js

if (navigator.userActivation.isActive) {
  // proceed to request playing media, for example
}
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