window.onload = function() { [].forEach.call(document.querySelectorAll('.content[href="this.com"]'),function(e){ e.innerHTML = "Im changed by forEach, its still a loop!"; }); }