| Author |
getElementsByName
|
cyril vidal
Ranch Hand
Joined: Jul 02, 2003
Posts: 247
|
|
Hi, I'm under Internet 5.5 and I would like to retrieve the first div element of a list, whose name is "dir". Why the second alert of my script results in undefined although it seemms a collection object is built (first alert returns an object). So my question is: how do I retrieve an item of the collection returned by the document.getElementsByName method? Thanks for your help, Regards Cyril.
|
SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
See if this helps you out http://www.mozilla.org/docs/dom/domref/dom_doc_ref49.html The item() part is waht you want to look at. Eric
|
 |
 |
|
|
subject: getElementsByName
|
|
|