#javascript-code-11-load.js / js
// Wait for the page to finish loading window.onload = function(){ // Locate the element with an ID of ‘cancel’ and bind a click handler document.getElementById(“cancel”).onclick = function(){ // That when clicked, hides the ‘main’ element document.getElementById(“main”).style.display = ‘none’; }; };
(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.