Retrieves the object that has the focus.
Syntax
HTML N/A Scripting [ oActive = ] document.activeElement
Possible Values
oActive Object that specifies the element that has the focus. The property is read-only with no default value.
Applies To
document