Which browsers support document.activeElement?

Which web browsers / versions support document.activeElement ?

This property allows you to see which element is active / has focus.

Are there any major errors / differences between implementations?

+43
javascript browser focus
Mar 15 '11 at 21:40
source share
2 answers

document.activeElement is supported by IE6 +, FF3 +, Safari 4+, Opera 9+, Chrome 9+. (FF2, Saf3 do not support this property)

+47
Mar 16 2018-11-11T00:
source share

It still does not work in WebKit-based browsers on the xhtml page, see https://bugs.webkit.org/show_bug.cgi?id=63922

+1
Jan 23 '14 at 17:49
source share



All Articles