evaluateJavascriptString in WebBrowserComponent


It would be great to make an evaluateJavascriptString method public in the WebBrowserComponent to allow communication with a webpage.

Thanks for all the good work!

The current Juce WebBrowserComponent is basically just a separate system provided browser window embedded in a Juce component. There isn’t much connection between the Juce C++ code and the browser’s internals.

On OSX, WebBrowserComponent is using the WebView class, which has the method stringByEvaluatingJavaScriptFromString. Maybe the other Web view classes in the various platform you support also allow to evaluate Javascript?

1 Like