UserActivation

The UserActivation interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.

MDN Reference

Properties

Link copied to clipboard

The read-only hasBeenActive property of the UserActivation interface indicates whether the current window has sticky activation.

Link copied to clipboard

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