问题
How could I disable javascript entirely on WebBrowser in WinForms?
回答1:
You can't. Client apps cannot disable JavaScript in the browser.
回答2:
With this you can disable warning from javascript
webBrowser.ScriptErrorsSuppressed = true;
来源:https://stackoverflow.com/questions/10623697/disable-javascript-in-winforms-webbrowser-control