[thelist] Google Map - onload & onunload without access to <body>

ivo cervantes_vive at yahoo.com
Tue Aug 11 07:03:36 CDT 2009

You can attach a DOM event listeners

window.addEventListener('load',load_handler, false);
document.addEventListener('load', load_handler, false);

As well as attach a listener to the unload event

window.addEventListener('unload', unload_handler, false);
document.addEventListener('unload', unload_handler, false);

More information about the thelist mailing list