Documentation

isFocused()

Returns true if this element currently has input focus.

isFocused(): boolean;

Related