方法一:spa
在WebBrowser的OnDocumentComplete事件書寫代碼。code
方法二:blog
WebBrowser1.Navigate(Url); while WebBrowser1.Busy or (WebBrowser1.ReadyState<>READYSTATE_COMPLETE) do Application.ProcessMessages;