Delphi: How to check if webbrowser has successfull

2019-08-31 06:34发布

问题:

I have a simple code:

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

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

回答1:

I assume that the the OnNavigateError event handler is called when there is a problem.