javascript is table is empty code example Example: javascript check table not empty document.getElementById("myTable").rows.length