Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

The right way is this :)

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: