title: How to get all childNodes in JS including all the 'grandchildren'?
body: <p>I want to scan a div for all childNodes including the ones that are nestled within other elements. Right now I have this:</p>
  
  <pre><code>var t = document.getElementById('DivId').childNodes;
  for(i=0; i&lt;t.length; i++) alert(t[i].id);
  </code></pre>
  
  <p>But it only gets the children of the Div and not the grandchildren. Thanks!</p>
  
  <p>Edit: This question was too vague. Sorry about that. Here's a fiddle:</p>
  
  <p><a href="http://jsfiddle.net/F6L2B/" rel="noreferrer">http://jsfiddle.net/F6L2B/</a></p>
  
  <p>The body.onload script doesn't run at JSFiddle, but it works, except that the 'Me Second' and 'Me Third' input fields are not being assigned a tabIndex and are therefore being skipped over.</p>