layout | tags |
---|---|
doc-api.html |
shadow-dom |
Identifies the element that currently has focus
This utility is a safeguard for document.activeElement
presenting invalid references.
var element = ally.get.activeElement();
var iframeElement = ally.get.activeElement({
context: iframeDocument,
});
- Added in
v1.3.0
.