Getting reference to the element in document which has a focus By Łukasz Lipiński | 2012/11/16 0 Comment var focused = document.activeElement Suppored in all browsers.