1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

getElementsByTagName

Sunday July 12, 2009
JavaScript can access collections of any HTML tag within the web page.

Now that we have considered some older but still useful methods of accessing and updating information in a web page from JavaScript (as well as the most common way of using the DOM to reference a specific tag), it is time to look at more of the standard DOM ways of doing so. In the seventh DOM tutorial we look at the most powerful of these which can provide access to all of the tags on the web page (or all of a given type) all in the one array.

getElementsByTagName
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Community Forum
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.