on Wed, modify Hangman game to use createElement stuff? http://alistapart.com/articles/behavioralseparation http://adactio.com/atmedia2005/ awful! my page bad. my page little better my page best! my page function doPopups() { if (!document.getElementsByTagName) return false; var links = document.getElementsByTagName("a"); for (var i=0; i < links.length; i++) { if (links[i].className.match("popup")) { links[i].onclick = function() { window.open(this.href); return false; } } } } window.onload = doPopups; inline (bad)