Name
children[ ] — NN n/a IE 4 DOM n/a
Synopsis
Returns an array of all first-level HTML element objects contained by
the current element. This collection differs from the
all[]
collection in that it contains references
only to the immediate children of the current element (whereas the
all[]
collection transcends generations). For
example, document.body.children[]
might contain a
form, but no reference to form elements nested inside the form. Items
in this array are indexed (zero based) in source code order.
Syntax
object
.children(index
).objectPropertyOrMethod
object
.children[index
].objectPropertyOrMethod
object
.children.elementID
.objectPropertyOrMethod
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.