ariaPressed property

Sets or retrieves the pressed state of a button that can be toggled.

Internet Explorer 8



object.setAttribute("ariaPressed",value);var value = object.getAttribute("ariaPressed");

Property values

Type: BSTR

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.

Standards information


Used in Roles


Buttons with a defined IHTMLElement5::ariaPressed state can be toggled. (When IHTMLElement5::ariaPressed is true the button is down, when false it is up.) Simple command buttons should not define a IHTMLElement5::ariaPressed state.

Note  The presence of the IHTMLElement5::ariaPressed attribute affects the behavior of accessibility and automation tools. The attribute should not be used carelessly.
Note  For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example object.setAttribute("aria-valuenow", newValue).

See also

Accessible Rich Internet Applications (ARIA)
W3C ARIA-Pressed