Intro
Does not leak.
window.onload = init; function init() { createLinks(); var x = document.getElementsByTagName('a'); for (var i=0;i<x.length;i++) { x[i].onclick = clickOnLink; } } function clickOnLink() { this.firstChild.nodeValue = ' Clicked! - '; }