How can I execute JavaScript and get its result in DCEF3? I would appreciate if someone could write a simple example of how this can be done.
I can execute JavaScript with the code below, but it doesn't provide the result.
Browser.MainFrame.ExecuteJavaScript('app.doit(''foo'')', '', 0);
From python implementation wiki:
This function executes asynchronously so there is no way to get the returned value. Calling javascript from native code synchronously is not possible in CEF 3. It is also not possible doing it synchronously the other way around ie. js->native.