topical media & game development
#javascript-code-11-addEvent.js / js
// Wait until the page is loaded
// (Uses addEvent, described in the next chapter)
addEvent(window, “load”, function() {
// Perform HTML DOM operations
next( id(“everywhere”) ).style.background = ‘blue’;
});
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.