Re: Can't catch DISPID_ONQUIT event?



Big Smith <tangap@xxxxxxxxx> wrote:
If a webbroswer closed by html's javascript, the parent window should
know this,

I sink the DISPID_ONQUIT like the DISPID_TITLECHANGE even:

_OnTitleChange works, but the _OnQuit never been called, is there
anything wrong?

Are you hosting WebBrowser control, or working with standalone IE
instance? OnQuit event is only fired by standalone IE. For WebBrowser
control, see KB article KB253219 "PRB: WebBrowser Control Disappears
When Script Calls window.close()"
--
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


.