aria-pressed attribute | ariaPressed property
Sets or retrieves the pressed state of a button that can be toggled.
<element aria-pressed="p" ... >
object.setAttribute("aria-pressed",value);var value = object.getAttribute("aria-pressed");
The pressed state.
The element is down (button pressed).
The element is up.
The element indicates both pressed and unpressed states.
Default. The element state is unknown.
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
|Used in Roles||
Buttons with a defined aria-pressed state can be toggled. (When aria-pressed is true the button is down, when false it is up.) Simple command buttons should not define a aria-pressed state.