activeElement
property of the DOCUMENT object. Returns a link to the active element (tag: INPUT, TEXTAREA, BODY).
document.activeElement
EXAMPLE: show the html-code of the currently active element:
alert(document.activeElement.outerhtml)
EXAMPLE: set a link to an active element and show its html-code:
set devae=document.activeElement
alert(devae.outerhtml)