Javascript Reference
Categories: links

javascript links tags( )

@March 15, 2008, 1:22 a.m.
tags( )Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

tags(tagName)

  

Returns a collection of objects (among all objects within the current collection) with tags that match the tagName parameter. Lets you distinguish among collections of a and area elements.

 
Parameters
 
  • A string that contains the element tag, as in document.links.tags("a").
 
Returned Value

A collection (array) of objects. If there are no matches to the parameters, the returned value is an array of zero length.


Powered by Linode.