在使用webBrowser控件时,访问网页会弹出JS脚本错误提示如下: 解决方法: 在webBrowser的DocumentCompleted事件中加上以下代码: //屏蔽网页JS脚本错误弹窗 webBrowser1.ScriptErrorsSuppressed = true;