December 1999
Intermediate to advanced
992 pages
22h 3m
English
You have already used the NodeList interface attributes and methods in these examples! Both the getElementsByTagName() method and the childNodes attribute will create a NodeList. In fact, this list is a list of node objects that can be accessed using the item method of the NodeList interface.
This method takes an index as its argument and returns the node at that index position. Null is returned if the index is out of range. Remember, that the count starts at zero, as always.
This returns an unsigned long integer indicating the number of nodes in the NodeList.
Read now
Unlock full access