Detecting when the webpage is fully loaded with webbrowser control c#

為{幸葍}努か 提交于 2019-12-06 13:25:47
noseratio

The DocumentComplete event may be fired multiple times for a document with frames. At the same time, for a particular document, the HTML DOM window.onload event will be fired only once. Here is how to use this fact to handle the completion of the top page loading.

OTOH, some pages are quite complex and use continuous AJAX updates. Strictly speaking, it may not always be possible to determine when a page like that has finished its rendering, with 100% probability. However, you can get close, here is how.

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