var trs = document.querySelectorAll('tr'); [].forEach.call(trs, function(tr) { alert(tr.textContent) })