Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Element
  4. ariaDescription

Element: ariaDescription property

Baseline 2024
Newly available

Since March 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

TheariaDescription property of theElement interface reflects the value of thearia-description attribute, which defines a string value that describes or annotates the current element.

Value

A string.

Examples

In this example thearia-description attribute on the element with an ID ofclose-button is set to the string "A longer description of the function of this element". UsingariaDescription we can update the value.

html
<button  aria-label="Close"  aria-description="A longer description of the function of this element" >  X</button>
js
let el = document.getElementById("close-button");console.log(el.ariaDescription); // "A longer description of the function of this element"el.ariaDescription = "A different description";console.log(el.ariaDescription); // "A different description"

Specifications

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# dom-ariamixin-ariadescription

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp