What is the recommended way to call a javascript function from C# using the WinForms GeckoFX control?
The questions says it all. I have everything wired up and know how to send messages from the browser html to c#, but not the other way. I should be able to do something like: browserControl.JSCall("myFunction('Dave','Smith');"); ...and in the web code: function myFunction(firstName, lastName) { $("#mydiv").text(firstName + ' ' + lastName); } Thanks - Dave John Hatton You can do this using Navigate: browserControl.Navigate("javascript:void(myFunction('Dave','Smith'))"); Note, I find that the code isn't actually run until the application event loop executes. If that's a problem for you, you