visibilityState

The visibilityState read-only property of the WindowClient interface indicates the visibility of the current client.

MDN Reference