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 2.

 

Up Up to JavaScript: DOM overview page

 

 

Navigating the document tree structure by accessing the html root element.

Access the html root element with 'document.documentElement' and use the 'lastChild', 'firstChild' and 'nextSibling' properties to then navigate down and traverse across the document tree structure.

Combine with the 'nodevalue' property to gain access to the text content of a web document.

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk