Hi,
I use IHTMLDocument2 interface for a simple browser in my project. The
navigation is done through the Navigate method, and the events
OnNavigateComplete2 and OnDocumentComplete are called properly. The problem
is that I cannot distinct the situations when the navigation succeeded and
when not, because the navigation complete and document complete events
appear also if the specified URL is not valid. How can I be sure the
navigation succeeded ?
In this moment I solved somehow the problem geting the HTML document that
resulted after the navigation process and then finding some metadata that
appear only in situations that the page cannot be displayed or website not
found.
Is there another possibility to do that, maybe using the IHTMLDocument2
methods/events ?
Thanks,
Bolo.