Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Forms WebBrowser control - supports Javascript?

The Windows Forms WebBrowser control (Visual Studio) hosts Web pages and provides Web browsing capabilities to your application.

Does the WebBrowser control have inbuild support for rendering content loaded through Javascript, CSS etc.? Or does it render only plain HTML?

like image 806
Nitin Garg Avatar asked Aug 09 '26 04:08

Nitin Garg


1 Answers

It supports javascript, css and etc. WebBrowser component is wrapper of Internet Explorer, and it works like Internet Explorer installed on your computer.

Flash, Silverlight, Video play correctly too.

Also, you may interact with page content from your .NET code or call .NET methods from javascript through windows.external object.

like image 103
acoolaum Avatar answered Aug 11 '26 17:08

acoolaum



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!