Skip to content

ally.js

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

🔗ally.is.visible

Determines if an element is rendered.

🔗Description

An element must be visible (ally.is.visible) and may not be disabled (ally.is.disabled) to be considered focusable.

🔗Usage

var element = document.getElementById('victim');
var isVisible = ally.is.visible(element);

🔗Arguments

NameTypeDefaultDescription
elementHTMLElementrequiredThe Element to test.

🔗Returns

Boolean, true if the element is focus relevant.

🔗Throws

TypeError if element argument is not of type HTMLElement.

🔗Contributing