W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: addEventHandler('load', handler, false)

From: Jonathan Watt <0jaw@qlink.queensu.ca>
Date: Thu, 21 Feb 2002 16:12:11 -0500
Message-Id: <>
To: www-dom@w3.org
Can no one tell me which object a handler should be added to when using the 
addEventHandler method to detect when the current document loads? I would 
very much appreciate clarification or, failing that, opinions.


At 11:25 PM 2/17/2002 -0500, Jonathan Watt wrote:
>I intend to submit some bugs for IE and Mozilla, but first I would like 
>some clarification as to just where a handler for the load event should be set?
>The two logical places seem to be to add it to 'document' or to 
>'document.documentElement'. A bug in Mozilla suggests that, when they get 
>it working, it will be added to 'document', yet in IE6 this causes an 
>error. The other option, 'document.documentElement', doesn't seem to work 
>for either browser.
>Thanks in advance,
Received on Thursday, 21 February 2002 16:08:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC