javascript document getElementById( )

getElementById( ) NN 6 IE 5 DOM 1

getElementById("elementID")

Returns a reference to an element node from the document tree whose id attribute value matches the parameter value. If there is no match, the method returns null. This method, although a chore to type while observing its case-sensitive name, is the gateway for scripts in W3C DOM-capable browsers to communicate with element objects.

 
Parameters
 
elementID

String of the desired element's ID.

 
Returned Value

Reference to element node object.


616,Nickname,Homepage or email,Comments here,Add comment