// http://d.hatena.ne.jp/rikuba/20130322/1363890592 Array.apply(null, document.querySelectorAll('div')).forEach(function(e){ console.log(e); }); Array.apply(null, document.getElementsByTagName('div')).forEach(function(e){ console.log(e); });