I am developing a windows application with a WebBrowser control that navigates to a sharepoint site.
My problem is that i am getting JavaScript error.
How can i disable the JavaScript error? I don't want them to pop up.
Occasionally you might need to suppress script errors while displaying dialog boxes such as those used for browser security settings and user login. In this case, set ScriptErrorsSuppressed to false and suppress script errors in a handler for the HtmlWindow.
The WebBrowser control provides a managed wrapper for the WebBrowser ActiveX control. The managed wrapper lets you display Web pages in your Windows Forms client applications.
webBrowser.ScriptErrorsSuppressed = true;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With