Hello,
I am navigating to an URL using the webbrowser1 control. When going to that URL, I get an error dialog that says:
"An error has occurred in the script on this page"
"Do you want to continue running scripts on this page"
Please see the screenshot of the dialogbox: http://www.bilddump.se/bilder/20160122032123-195.252.32.111.png
(Notice that the errorbox doesn't show in internet explorer)
|
The thing is that I need to run scripts in order for functions to work on the webpage I am going to. So I click "Yes" all the time
as this popup is coming up everytime I go to a new link on this webpage. But I cant keep clicking "Yes" all the time.
I have tried to put "webBrowser1.ScriptErrorsSuppressed = true;" like below. And yes, that takes away the dialog error box.
But then the popups on this webpage doesn't show.
So I would need to "continue running scripts on this page" but how to prevent the dialog box to appear?
webBrowser1.ScriptErrorsSuppressed = true;