Hacker News new | ask | show | jobs
by v413 5038 days ago
The right way is this :)

Array.prototype.forEach.call(document.getElementsByTagName('p'), function(el) { el.innerHTML = 'Hello.'; });

1 comments

I like how the end of that statement contains both a winking crooked-smile smiley next to black-eyed frown smiley.