Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF/ChromiumWebBrowser executing Javascript function (With parameters!)

So I'm working on a WPF app that has a web page self hosting, and in my Javascript I need to use some data from my C#. I'm wondering if there's any way (in WPF/C#) to invoke a Javascript function WITH a parameter, or if the best way to accomplish this would just be to dump the parameters to a text file and use the Javascript to read it in again, which I'd strongly prefer not to do.

Thanks!

like image 603
This Guy Avatar asked Jan 28 '26 17:01

This Guy


1 Answers

Thanks for responding, but the class I'm using is actually the ChromiumWebBrowser, part of CefSharp. I didn't think to google that and i actually found this How to pass inputs to javascript functions with cefsharp

Thanks!

like image 95
This Guy Avatar answered Jan 30 '26 06:01

This Guy



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!