C# 如何摆脱JavaScript错误提示?

C# 如何摆脱JavaScript错误提示?,c#,javascript,html,browser,C#,Javascript,Html,Browser,我正在使用C#WebBrowser,有时在加载页面时(不总是),我会收到以下提示: An error has occured in the script on this page. Line 1 Char 45774 Error Object required Code 0 URL http://xxx.i_replaced_the_link_here.com/blah_BLAH_blah123 Do you want to continue running scripts on this p

我正在使用C#WebBrowser,有时在加载页面时(不总是),我会收到以下提示:

An error has occured in the script on this page.
Line 1
Char 45774
Error Object required
Code 0
URL http://xxx.i_replaced_the_link_here.com/blah_BLAH_blah123

Do you want to continue running scripts on this page?
Yes / No
我想继续,但我不能一直单击“是”按钮


您认为我可以如何修复它?

您可以将
WebBrowser.ScriptErrorsSuppressed
控件属性设置为
true
。这样您就不会出现任何错误。

您需要修复javascript,确保它不会引发错误您的问题与C#tag?相关的位置可能重复?。它只是与Javascript相关的Web浏览器设置的一个选项。