简体   繁体   中英

Custom C# Web Browser cannot support javascript

I'm creating a web browser that has an automatic loading of specific web pages, but the problem is that the browser that i created using c# in visual studio wont load javascipt, the browser that i created only load html file, but don't support java script. can anyone help me on how to add some functionality on my custom web browser that will support javascript.

Webbrowser control is really crappy. I'm assuming you're trying to scape some kind of website. For this use HttpWebRequest instead.

If you`re trying create your own webbrowser: don't, or use Webkit or Gecko instead.

In case you're using the webbrowser control you will have to enable JavaScript in your Internet Explorer settings, because the webbrowser control is the Internet Explorer or at least the engine of it. IE has local JavaScript disabled by default, so this could be your problem. As user @user3855678 said I would recommend using Webkit etc too.

WebKit DotNet is the best port of WebKit powerful browser engine into DotNetFramework.

It has nice and easy tutorials and properties and methods to customize.

It has JavaScript activated by default.

http://webkitdotnet.sourceforge.net/ is the official website.

http://webkitdotnet.sourceforge.net/basics.php is where you can find the basic tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM