Platform Support
| IE | Mozilla | Netscape | Opera | Safari | no | 1.0+ | 7.0+ | no | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
NodeList Constructor() : NodeList
Collection of nodes accessible by index.
|
Show Details | no | 1.0+ | 7.0+ | no | no | ||
NodeList() : NodeListCollection of nodes accessible by index. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
length
: Number
The number of nodes in this list.
|
Show Details | no | 1.0+ | 7.0+ | no | no |
|
||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
static item(Number index) : Node
Returns the node contained at the specified index.
|
Show Details | no | 1.0+ | 7.0+ | no | no | |||||
|
Parameters
Returns
|
|||||||||||
Remarks
A NodeList is a sort of array which is used to contain a collection of nodes. It is commonly used throughout
the DOM objects as a way of returning a list of nodes, whether as a listing of Element, or as a list of
Though in principle this object is similar to an Array, it is merely a very rudimentary form, and as such
there is no relationship between the two objects. The list of methods and properties a NodeList supports is
quite small in comparison.
References
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C
