Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

webBrowser1: "Do you want to continue running scripts on this page" error

$
0
0

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;








Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>