Javascript Properties JavaScript Reference

Note:
Read-only property. 
Get the element that has focus, if the document is fully loaded.
    
Syntax:
    
document.activeElement