如何利用 WebBrowers 控件取得网页源代码?

来源:百度知道 编辑:UC知道 时间:2024/05/27 13:13:34
如何利用 WebBrowers 控件取得网页源代码?

用Urldownloadtofile 这个API下载网页不就行了么

webbrowser:
示例:
For i = 0 To WebBrowser1.Document.All.length - 1
If WebBrowser1.Document.All(i).tagName = "HTML" Then
strContent = strContent & WebBrowser1.Document.All(i).innerHTML
Exit For
End If
Next