ReadonlyhasThe read-only hasBeenActive property of the UserActivation interface indicates whether the current window has sticky user activation.
ReadonlyisThe read-only isActive property of the UserActivation interface indicates whether the current window has transient user activation.
The
UserActivationinterface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.MDN Reference