Guostong

I try to write a IE add-on to restrict the visiting of web site, user can only visit some allowed web site. So I cancel the request in DISPID_BEFORENAVIGATE2 event if the web site is not allowed, it works, but how to redirect to a specified URL
IWebBrowser2.Navigate2 don't work.



Re: Internet Explorer Extension Development How to redirect to an other url in IE add-on ?

Sharath Udupa - MSFT

You can call IWebBrowser2.Navigate with another URL in the BeforeNavigate2. You must use the IWebBrowser passed as the first parameter in BeforeNavigate2. What exactly doesnt work for you



Re: Internet Explorer Extension Development How to redirect to an other url in IE add-on ?

MojoBook

usinng pDisp.navigate2 yourURL




Re: Internet Explorer Extension Development How to redirect to an other url in IE add-on ?

Guostong

Sorry, my mistake, it works, thanks