'hasChildNodes()' Syntax, Parameters and Note
Note:
Does element have child nodes.
Returns true or false.
Syntax:
document.getElementById("elementID").hasChildNodes()
document.all.elementID.hasChildNodes() // IE only
Related examples in the same category