Skip to content

ally.js

JavaScript library to help modern web applications with accessibility concerns by making accessibility simpler

# 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

HTMLElement.

# Changes

# Contributing