DOM Object: HTMLCollection
|
Properties/Methods |
Function Description |
Data |
Test Case |
|---|---|---|---|
| length | This attribute specifies the length or size of the list. | 9 | hcol001.html |
| item(index) | This method retrieves a node specified by ordinal indes. Nodes are numbered in tree order (depth-first traversal order). Returns a node at the corresponding position upon success. A value of null is returned if the value is out of range. | [object HTMLTitleElement] | hcol002.html |
| namedItem(name) | This method retrieves a node using a name. It first searches for a node with a matching id attribute. If it doesn't find one it then searches for a node with a matfhing name attribute, but only on those elements that are allowed a name attribute. | [object HTMLBodyElement] | hcol003.html |