GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing javascript.info — Count descendants back to the lesson Count descendantsimportance: 5 There’s a tree structured as nested Write the code that for each
Let’s make a loop over
In the loop we need to get the text inside every We can read the text from the first child node of
Then we can get the number of descendants as |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |