Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

hasChildNodes method

Returns a value that indicates whether the object has children.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4


 retVal = object.hasChildNodes();


This method has no parameters.

Standards information


If the object contains HTML Elements or TextNodes, they can be accessed from the childNodes collection.

In Microsoft Internet Explorer 6, This method now applies to the attribute object.

See also

About the W3C Document Object Model



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.