<button
role="tab"
aria-selected="true"
aria-setsize="3"
aria-controls="tabpanel-id"
id="tab-id">
Tab label
</button>Element: ariaSetSize property / notebook
Element: ariaSetSize property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
let el = document.getElementById("tab-id");
console.log(el.ariaSetSize); // 3
el.ariaSetSize = "4";
console.log(el.ariaSetSize); // 4