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: <5.1.0.14.0.20020221160839.00a14970@qlink.queensu.ca>
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.

Jonathan.


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,
>
>Jonathan.
Received on Thursday, 21 February 2002 16:08:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT