Name
all[ ] — NN n/a IE 4 DOM n/a
Synopsis
Returns an array of all HTML element objects contained by the current
element. Items in this array are indexed (zero based) in source code
order. The collection transcends generations of nested elements such
that document.all[]
exposes every element in the
entire document.
As with all collections in Internet Explorer 4, you may use the traditional JavaScript array syntax (with square brackets around the index value) or IE’s JScript alternative (with parentheses around the index value). If you are aiming for cross-browser deployment for collections that are available on both platforms, use the square brackets.
Syntax
object
.all(index
).objectPropertyOrMethod
object
.all[index
].objectPropertyOrMethod
object
.all.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.