Export (0) Print
Expand All

aria-expanded attribute | ariaExpanded property

Sets or retrieves the expanded state of this element.

Internet Explorer 8

Syntax

HTML
<element aria-expanded="p" ... >
JavaScript
object.setAttribute("aria-expanded",value);var value = object.getAttribute("aria-expanded");

Property values

Type: String

The expanded state.

(true)

The element is expanded.

(false)

The element is not expanded.

(undefined)

Default. The element state is unknown.

Standards information

Remarks

Used in Roles
button
document
link
section
sectionhead
separator
window

 

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-Expanded

 

 

Show:
© 2014 Microsoft