Javascript Reference
Categories: scripts

javascript scripts tags( )

@July 12, 2008, 5:15 a.m.
tags( ) Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

tags(tagName)

  

Returns a collection of script objects (among all objects within the current collection) with tags that match the tagName parameter. Redundant here, because all elements have the same script tag.

 
Parameters
 
  • A string of the all-uppercase version of the element tag, as in document.scripts.tags("script").
 
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.