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