Re: "onDocumentComplete" and reading the DOM of a loaded page



"Noa" <Noa@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6954CCED-4A4C-4C64-A857-5B537BD85889@xxxxxxxxxxxxx
> When I get the "onDocumentComplete" in my BHO, it occurs BEFORE the
> script of the "onload" is executed. I know that for sure because i
> actually take advantage of that to change the onload script...
> However it is not according to documentation i think.
>
> Anyway - if i need to read the DOM, It might be to early at this
> point , since the dom might change in the onload... What i need is
> the DOM after the onload occured....

Post yourself a user-defined window message. By the time the message
arrives onload action is complete.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages