EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

childElementCount property

Retrieves the number of immediate child nodes of the current element or a zero if the element does not contain any child nodes. childElementCount does not return all child nodes, only child nodes that are nodeType =1, or element nodes.

Syntax

JavaScript

p = object.childElementCount

Property values

Type: Integer

The number of child elements.

Standards information

Remarks

The childElementCount property only returns immediate children of the current node. It does not count descendent children of the immediate children.

See also

a
abbr
acronym
address
applet
area
attribute
b
base
baseFont
bdo
big
blockQuote
body
button
caption
center
cite
code
col
colGroup
comment
dd
del
dfn
dir
div
dl
dt
em
embed
fieldSet
font
form
frame
frameSet
head
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
kbd
label
legend
li
link
listing
map
marquee
menu
nextID
ol
option
p
plainText
pre
q
s
samp
script
select
small
span
strike
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
xmp

 

 

Afficher:
© 2014 Microsoft