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 = function () { this.firstChild.nodeValue = ' Clicked! - '; } } }