'Allow System.Windows.Forms.WebBrowser to run javascript

Seriously - read the question all the way through before attempting to answer it. "Use a different browser" doesn't answer this question.

The question is this: How do I get a System.Windows.Forms.WebBrowser control to display a web page that has Javascript embedded in it when I have no control over the incoming page? I've already seen people suggest adding registry values for IE emulation (Allowing javascript to run on a windows form web browser) and altering the script settings in Internet Options/Security. Internet security options

I've done that already.

So, here's the test - use a System.Windows.Forms.WebBrowser control to access www.hulu.com.
Still getting this

And we're still getting this.

Any other ideas?



Solution 1:[1]

Possible approaches:

Solution 2:[2]

Only add this line in the top

this.webBrowser1.ScriptErrorsSuppressed = true;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community
Solution 2 Suraj Rao