webview_eval

public final Unit webview_eval(CPointer<? extends CPointed> w, String js)

Evaluates arbitrary JavaScript code.

Evaluation happens asynchronously, also the result of the expression is ignored. Use the webview_bind function if you want to receive notifications about the results of the evaluation.

Parameters

w

the handle of webview, usually returned by webview_create

js

the JS code