The getElementsByTagName method is a favorite method. This method returns an array of elements in a page that have a particular tag name (such as "P"). You can see the support for this method in Table 6.26.
Method | NS2 | NS3 | NS4 | NS6 | IE3a | IE3b | IE4 | IE5 | IE5.5 | IE6 |
---|---|---|---|---|---|---|---|---|---|---|
getElementsByTagName(tag) | x | x | x | x | ||||||
Returns: Element array |