hasChildNodes method

[This documentation is preliminary and is subject to change.]

Returns a value that indicates whether the object has children.

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


VARIANT_BOOL retVal = object.hasChildNodes();

Standards information


This method has no parameters.


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



Build date: 1/26/2012