WebView.runJavascriptInWorld

Asynchronously run @script in the script world with name @world_name of the current page context 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_in_world_finish() to get the result of the operation.

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

Parameters

script string

the script to run

worldName string

the name of a #WebKitScriptWorld

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

Since

2.22