Explanation
A collection object, representing all elements in the document. Following code outputs number of applets in the html document.
Code syntax
CODE
Properties
Property | Description |
---|---|
length | Returns the number of <applet> elements in the collection. Note: This property is read-only |
Methods
Method | Description |
---|---|
[index] | Returns the <applet> element from the collection with the specified index (starts at 0). Note: Returns null if the index number is out of range |
item(index) | Returns the <applet> element from the collection with the specified index (starts at 0). Note: Returns null if the index number is out of range |
namedItem(id) | Returns the <applet> element from the collection with the specified id. Note: Returns null if the id does not exist |