isActive

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

MDN Reference