hasChildNodes hasChildNodes is a boolean value indicating whether the current element has children or not. Syntax [ true | false ] = element.hasChildNodes Parameters boolean true | false Example t1 = document.getElementById("table-data"); if ( t1.hasChildNodes ) { // table has kids } Notes None. Specification core
hasChildNodes is a boolean value indicating whether the current element has children or not.
[ true | false ] = element.hasChildNodes
boolean true | false
t1 = document.getElementById("table-data"); if ( t1.hasChildNodes ) { // table has kids }
None.
core