|
|
|
|
|
length
length returns the number of items in a list.
Syntax
no_of_items = nodeList.lengthParameters
no_of_items is an integer value representing the number of items in a list.
Example
Notes
length is a very common property in DOM programming. It's very common to test the length of a list (to see if it exists at all) and to use it as the iterator in a for loop, as in the example above.
Specification
core
| mozilla.org | mailto:oeschger | bug 93108 |
|
|
|
|
|