This document is now loaded into the browser, but note that this did not happen until the event had bubbled all the way up the object hierarchy. You can cancel the default action for an event at any level in the hierarchy by setting the event's returnValue property to false, like this:
' In Visual Basic Script: window.event.returnValue = False // In JScript: window.event.returnValue = False; // or simply return false from a function that handles an event: function myHandler() { if (state = "ready") return true; else return false; }