JSREF

HTML DOM Document activeElement

Get the currently focused element: