Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ariaPressed property

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

Internet Explorer 8

Syntax

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

Property values

Type: BSTR

The pressed state.

(true)

The element is down (button pressed).

(false)

The element is up.

(mixed)

The element indicates both pressed and unpressed states.

(undefined)

Default. The element state is unknown.

Standards information

Remarks

Used in Roles
button

 

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 do not need to define a IHTMLElement5::ariaPressed state.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.