Simon Willison’s Weblog

Closures and executing JavaScript on page load. I’ve tried to explain closures on my SitePoint blog, using addLoadEvent() as an example.