Intro
Doesn't leak.
function init() { createLinks(); var x = document.getElementsByTagName('a'); for (var i=0;i<x.length;i++) { x[i].onclick = function () { this.style.backgroundColor = '#cc0000'; } } }