# ally.get.activeElement
Identifies the element that currently has focus
# Description
This utility is a safeguard for document.activeElement
presenting invalid references.
# Usage
var element = ally.get.activeElement();
var iframeElement = ally.get.activeElement({
context: iframeDocument,
});
# Returns
# Changes
- Added in
v1.3.0
.