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

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 UTC