there is an html-document in which the use of the script is present with the help of:

But, when I load this html-document into WebBrowser, I get a "Script Error" and the script itself stops working. I load this html document with: webBrowser1.DocumentText = Properties.Resources.HTMLDocument;

How can I fix this error?

  • one
    For what purpose do you need a browser? Pure content display or something more? If the content is pure, then the standard WebBrowser has long been outdated, it is better to take something more modern, third-party (for example, CefSharp). If you are working with the page itself, then try to work with queries, not with html, well, or use for example Selenium. - EvgeniyZ
  • @EvgeniyZ and if exactly WebBrowser is required? Or solutions for it does not exist?) - Paul Greengod
  • I do not think. WebBrowser is IE, by default it is like IE7. You can try to do something like this . But not a fact, not a fact ... - EvgeniyZ February

0