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

旧巷老猫 提交于 2019-12-12 02:36:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!