Login | |
|
 |
RE: Access HTML Element .... - 12/17/2006 9:35:31 PM
|
|
 |
|
| |
TNO
Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Instead of using loops, you can do this: <div id="MyDiv">Hola Bueno!</div> document.getElementById("MyDiv") now if you WANT to use a loop, then lets pretend you have a bunch of divs: <div>I</div> <div>AM</div> <div>NOT</div> <div>A</div> <div>ROBOT</div> I can now access all of those elements like this: Dim myDiv, obj myDiv=document.getElementsByTagName("DIV") For Eachobj in myDiv Foo End For
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|