WebView.runJavascript

Asynchronously run @script in the context of the current page in @web_view. If WebKitSettings:enable-javascript is FALSE, this method will do nothing.

When the operation is finished, @callback will be called. You can then call webkit_web_view_run_javascript_finish() to get the result of the operation.

class WebView
void
runJavascript
(
string script
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

script string

the script to run

cancellable Cancellable

a #GCancellable or %NULL to ignore

callback GAsyncReadyCallback

a #GAsyncReadyCallback to call when the script finished

userData void*

the data to pass to callback function

Meta