focused

external val focused: Boolean(source)

The focused read-only property of the WindowClient interface is a boolean value that indicates whether the current client has focus.

MDN Reference