Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Document.activeElement

3 tags 1 category

The activeElement read-only property of the Document interface returns the Element within the DOM that is receiving keyboard events such as keydown and keyup. This is usually analogous to the focused element.

Which elements are focusable varies depending on the platform and the browser’s current configuration. For example, on Safari, following the behavior of macOS, elements that aren’t text input elements are not focusable by default, unless the “Full Keyboard Access” setting is enabled in System Settings.

Typically a user can press the Tab key to move the focus around the page among focusable elements, and use keyboard gestures such as Space or Enter to simulate clicks on the focused element.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…