0

In C# with Wilium CefGlue, I call JavaScript code like this

browser.GetMainFrame().ExecuteJavaScript("return 1;", null, 0);

But ExecuteJavaScript() is a void method.

How can I get the return value from JavaScript code?

Any guidance would be appreciated, thanks!

LeMoussel
  • 5,290
  • 12
  • 69
  • 122

1 Answers1

0

JavaScript Integration

The ExecuteJavaScript() function can be used to interact with functions and variables in the frame's JS context. In order to return values from JS to the client application consider using Window Binding or Extensions.

synh
  • 176
  • 3