问题
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.
来源:https://stackoverflow.com/questions/11568605/delphi-how-to-check-if-webbrowser-has-successfully-loaded-the-page