Javascript Reference
Categories: scripts

javascript scripts namedItem( )

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

namedItem("ID")

  

Returns a single script object or collection of script objects corresponding to the element matching the parameter string value.

 
Parameters
 
  • The string that contains the same value as the desired element's id attribute.
 
Returned Value

One script object or collection (array) of script objects. If there are no matches to the parameters, the returned value is null.


Powered by Linode.