HTML - How do I know when all frames are loaded?

前端 未结 12 1266
挽巷
挽巷 2020-12-10 04:31

I\'m using .NET WebBrowser control. How do I know when a web page is fully loaded?

I want to know when the browser is not fetching any more data. (The moment when IE

12条回答
  •  囚心锁ツ
    2020-12-10 05:24

    Checking for IE.readyState = READYSTATE_COMPLETE should work, but if that's not proving reliable for you and you literally want to know "the moment when IE writes 'Done' in its status bar", then you can do a loop until IE.StatusText contains "Done".

提交回复
热议问题