HTML DOM Document activeElement
HTML DOM activeElement Property
The activeElement property is used to return the HTML element that is in focus. It is a read-only property.
Syntax:-
Its syntax is:- document.activeElement
Return:-
Its return is:- HTML element that is in focus