Get the number of rows in a HTML table [duplicate] July 27, 2023 by Tarik var x = document.getElementById("myTable").rows.length;