title: JavaScript next sibling?
body: <p>Could someone show me how to loop through the anchor tags within a div and find the next sibling?</p>
  
  <p>I have this so far.</p>
  
  <pre><code>var menu = document.getElementById('menu');
  var links = menu.getElementsByTagName('a');
  </code></pre>
  
  <p>How do I loop through the links? Can I use <code>.nextSibling</code> to find if the next sibling is a div?</p>