Element.childElementCount

Table of contents

  1. 1. Summary
  2. 2. Syntax and values
  3. 3. See also
Table of contents
  1. 1. Summary
  2. 2. Syntax and values
  3. 3. See also

Introduced in Gecko 1.9.1

(Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

« Gecko DOM Reference

Warning: Don't use it. Support might be dropped in future versions of Gecko. See bug 673790 .
 

Summary

childElementCount returns the number of child elements of the given element.

Syntax and values

var elCount = elementNodeReference.childElementCount; 

elCount is the number of elements that are children of the current element. If the element has no children, then elCount is zero.

This attribute is read only.

Tags (3)

Edit tags

Attachments (0)

 

Attach file