August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.all[index]
The document.all property is an array of all the HTML elements that are in the document. The elements appear in the array in the order in which they were created. Table 7.10 lists the methods associated with document.all array.
| Method | Description |
|---|---|
| item() | Returns an HTML element based on element's name |
| tags() | Returns an array of elements that have the specified tag |
Listing 7.50 uses the document.all property array and array notation (brackets) to access the Paint anchor. Using dot notation, the name of the anchor is used to create a link to the top of the page.
Read now
Unlock full access