Delphi: How to check if webbrowser has successfully loaded the page?
===

I have a simple code:

    WebBrowser1.Navigate('www.foo.com');

But of course sometimes the browsing fails and the browser displays the error message.<br>
How can I catch when this happens?<br>
I want this so that I can make a some sort of a custom log.<br>

