document.activeElement property returns the data related to the Element within the DOM or shadow DOM tree that currently has focus.
Note: This property is read-only.
|Object||Returns the data related to the Element within the DOM or shadow DOM tree that currently has focus.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.