isActive

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

MDN Reference