vb.NET webbrowser 修改网页源码
发布网友
发布时间:2022-05-24 12:18
我来回答
共1个回答
热心网友
时间:2023-10-13 00:56
Dim c
Private Sub Form_Load()
URL = "http://zhidao.baidu.com/question/123100932.html"
c = 0
WebBrowser1.Navigate URL
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If c = 1 Then Exit Sub '这个是为了防止这个过程无限执行下去
c = c + 1
tmp = WebBrowser1.Document.body.innerhtml
tmp = Replace(tmp, "88753967", "好玩吗?")
WebBrowser1.Document.body.innerhtml = tmp
End Sub