A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaHidden below:

Element: ariaHidden property - Web APIs

Element: ariaHidden property

Baseline 2023

Newly available

The ariaHidden property of the Element interface reflects the value of the aria-hidden) attribute, which indicates whether the element is exposed to an accessibility API.

Value

A string with one of the following values:

"true"

The element is hidden from the accessibility API.

"false"

The element is exposed to the accessibility API as if it were rendered.

"undefined"

The element's hidden state is determined by the user agent based on whether it is rendered.

Examples

In this example the aria-hidden attribute on the element with an ID of hidden is set to "true". Using ariaHidden we update the value to "false".

<div id="hidden" aria-hidden="true">Some things are better left unsaid.</div>
let el = document.getElementById("hidden");
console.log(el.ariaHidden); // true
el.ariaHidden = "false";
console.log(el.ariaHidden); // false
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4