hasBeenActive

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

MDN Reference