共用方式為


ariaPosinset property

Sets or retrieves the current position of an item within a set.

 

Syntax

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

Property values

Type: short

The current position.

Standards information

Remarks

Used in Roles listitem option

 

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