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