Node.hasChildNodes() (Method)

A convenience method to provide a flag indicating whether there are any children belonging to this node.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:-myNode.hasChildNodes()

See also:Element.contains(), Element.firstChild