共用方式為


ariaControls property

Sets or retrieves the list of elements that are controlled by the current element.

 

Syntax

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

Property values

Type: BSTR

A space-separated list of IHTMLElement::id property values.

Standards information

Remarks

Used in Roles No role required.

 

This property defines element relationships and associations that cannot be readily determined from the document structure.

The IHTMLElement5::ariaControls property is used primarily by elements where the IHTMLElement5::role property value is group, region, or widget. Compare this usage with that of the IHTMLElement5::ariaOwns property.

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)

Reference

IHTMLElement5::ariaDescribedby

IHTMLElement5::ariaFlowto

IHTMLElement5::ariaLabelledby

IHTMLElement5::ariaOwns

IHTMLElement5::ariaPosinset

IHTMLElement5::ariaSetsize