aria-posinset attribute | ariaPosinset property
Sets or retrieves the current position of an item within a set.
![]() |
Syntax
| HTML |
|---|
<element aria-posinset="p" ... > |
| JavaScript |
|---|
object.setAttribute("aria-posinset",value);var value = object.getAttribute("aria-posinset");
|
Property values
Type: Number
The current position.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
| Used in Roles |
|
|---|
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
Show:
