How can I find if IWebBrowser2::Navigate cannot open the URL I want?
I mean, the website may not exist at all, and IE simply display an Error 404, and return S_OK after the function.
How can I obtain details on the status of navigation request?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The method returns success because web browser indeed succeeded in navigating per your request. It did what it had to and being unable to locate the website it, as it is expected, displayed 404 page. Hence,
S_OK.The DWebBrowserEvents2::NavigateError Event gives you detail you need. You need to handle browser events to receive the detail you need.