DOM Object: NodeList
|
Properties/Methods |
Functional Description |
Data |
Test Case |
|---|---|---|---|
| length | The number of nodes in the list. Range of valid child node indices is 0 to length-1 inclusive. | a)1 b)1,1,3,9 |
a)clst001.html b)clst003.html |
| item(index) | Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. | c)"[object HTMLHtmlElement]" d)"[object HTMLHtmlElement]", "[object HTMLBodyElement]", "[object HTMLScriptElement]", "[object HTMLFormElement]" |
c)clst002.html d)clst004.html |