Documentation

isFocused()

Returns true if the element currently has input focus.

isFocused?(): boolean;

Related