<table>
<thead>
<tr>
<th id="spanning-heading" rowspan="3" aria-rowspan="3">
Spanning heading
</th>
<th>Heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>One</td>
</tr>
<tr>
<td>Two</td>
</tr>
</tbody>
</table>Element: ariaRowSpan property / notebook
Element: ariaRowSpan 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("spanning-heading");
console.log(el.ariaRowSpan);
el.ariaRowSpan = "2";
console.log(el.ariaRowSpan);