How does vb's WebBrowser control avoid browser script errors?

Solution 1:

Add the following code to the form:

 

Private Sub WebBrowser1_DownloadBegin()

WebBrowser1.Silent = True

End Sub

Private Sub WebBrowser1_DownloadComplete()

WebBrowser1.Silent = True

End Sub 

 

Solution 2:

 

Select the "Disable script debugging" check box to start IE, select the "Advanced" tab, and execute the "Tools → Internet Options" menu 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326513014&siteId=291194637