ReadonlyhasThe read-only hasBeenActive property of the UserActivation interface indicates whether the current window has sticky activation.
ReadonlyisThe read-only isActive property of the UserActivation interface indicates whether the current window has transient 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