I'll know my song well before I start singin'.” Bob Dylan
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: DOM tutorial code snippet 4.

 

Up Up to JavaScript: DOM overview page

 

 

Navigating the document tree structure incorporating a 'for loop'.

Use 'document.getElementById()' to target a specific node in the document and navigate the document tree structure from that point using the 'childNodes' property: an array value list of the child nodes of a node.

Access the 'childNodes' array values by utilising a 'for loop'.

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2012 justfigures.co.uk