Example 1 — Read ariaCurrent
MDN-style nav link: read the reflected current-page token.
const el = document.getElementById("link-home");
console.log(el.ariaCurrent); // "page" How It Works
- Select the link marked as the current page.
- Read
ariaCurrent. Returns the token string. - Expect
"page"for site navigation. - AT can announce that this is the current page.

