asp.net.ph

Skip Navigation Links

hasChildNodes Method

DHTML Methods


DOM Level 1 Specification.

Returns whether the given node has children.

Syntax

bChildNodes = object.hasChildNodes ( ) 
Return Value

Boolean. Returns true if the object has childNodes.

Remarks

This method offers a convenient way to determine whether a node has children. The method always returns false for nodes that, by definition, cannot have children: the CDATASection, Comment, Notation, ProcessingInstruction, and Text nodes.

If the object has children, they can be accessed from the childNodes or children collection.



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note