Element.ariaFlowToElements is an array of elements that provide an alternate reading order, overriding the default order at the user’s discretion (MDN). It is the element-reference form of aria-flowto.
Read the notes below before you get or set this property. Prefer feature detection when support is limited.
Syntax
Use el.ariaFlowToElements. Start with this line.
JavaScript
const next = section1.ariaFlowToElements;
Call
What it does
const next = section1.ariaFlowToElements;
Primary signature.
Built into the browser. Read or assign el.ariaFlowToElements — no import required.
Library declarations
JavaScript
const next = section1.ariaFlowToElements;
Parameters
Parameter
Description
Property
Required. el.ariaFlowToElements
Attribute
Optional. aria-flowto id list
Return Value
Return Value
Description
*
The current value of el.ariaFlowToElements.
JavaScript Examples
Example 1 — Read from aria-flowto (MDN)
Log each section’s attribute and resolved flow-to element ids.
Assign an array. No id required when setting the property (MDN).
Expect a cleared attribute. Setting the property clears aria-flowto.
Remember: this advertises a path — it does not auto-scroll the page.
Example 3 — Feature-Detect Before Use
Guard older browsers; keep an attribute fallback if needed.
JavaScript
if ("ariaFlowToElements" in Element.prototype) {
console.log("ariaFlowToElements is supported");
} else {
console.log("ariaFlowToElements not supported by browser");
// fallback: getAttribute("aria-flowto") + getElementById
}
Use in Element.prototype. Safe check without calling the getter.
Branch on support. New API — not every engine has it yet.
Keep id + attribute fallback when you still need the relationship.
Prefer the property when supported — elements need no id.
Compatibility
Browser Support
Element.ariaFlowToElements is Baseline Newly available (MDN: across latest browsers since April 2025). Feature-detect on older engines and keep an aria-flowto id fallback if needed.
✓ Baseline 2025 · Newly available
ariaFlowToElements
Element-reference form of aria-flowto for alternate reading order.
2025Newly available
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
ariaFlowToElementsLatest browsers
Bottom line: Prefer the property when supported. One target = next path; many = choices. Setting clears the attribute.
Frequently Asked Questions
An array of HTMLElement subclasses that provide an alternate reading order, overriding the default order at the user's discretion (MDN). One element is the next path; multiple elements are possible paths to offer.
No. MDN marks Element.ariaFlowToElements as Baseline 2025 Newly available (since April 2025). It is not Deprecated, Experimental, or Non-standard. Feature-detect on older browsers.
The attribute uses space-separated id strings. The property uses Element references. Assigned elements do not need an id. Setting the property clears the corresponding attribute (MDN).
No. aria-flowto / ariaFlowToElements advertise alternate paths that accessibility tools may offer. Normal document order for sighted users is unchanged unless you also provide visible navigation.
No. When read, the returned array is static and read-only. When written, the assigned array is copied — later changes to that array do not update the property (MDN).
Yes. Custom elements can use ElementInternals.ariaFlowToElements for the same relationship from inside a component (MDN).