.. _DocumentOrShadowRoot_activeelement:
===========================================
DocumentOrShadowRoot.**activeElement**
===========================================
.. seealso::
- https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement
.. contents::
:depth: 5
Definition
===============
The activeElement read-only property of the Document and ShadowRoot
interfaces returns the Element within the DOM or shadow DOM tree that
currently has focus. This property is inherited from the DocumentOrShadowRoot
mixin.
Often activeElement will return an or