Link to home
Start Free TrialLog in
Avatar of BrindleFly
BrindleFly

asked on

receiving an event when IE changes URLs

Is it possible to write an ActiveX control that receives a URL changed event any time the IE browser in another window changes its URL?

I know the IWebBrowser interface publishes an event called NavigateComplete2(pDisp, url) - but thought this interface was used only for use as a container.

I would like to write an ActiveX control that sits in one window of IE and receives events about changes in a second window.

Let me know if you have any thoughts or ideas.

Thanks.

Avatar of slinky
slinky

How about using the Javascript OnLoad event?
Avatar of BrindleFly

ASKER

The JavaScript OnLoad() event can only be hooked if it appears on the HTML page that is loading.  I need to catch the change event from another window of the browser.  This window is not necessarily under my control - so JavaScript is out of the question.

My hope is to have an ActiveX control that hooks events coming from the browser.




ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial