• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Using Core HTML Methods and Events > The getElementsByTagName Method

The getElementsByTagName Method

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.

Table 6.26. The getElementsByTagName Method
Method NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
getElementsByTagName(tag)    x    x x x
  Returns: Element array



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint