run_javascript


Description:

[ Version ( deprecated = true , deprecated_since = "2.40" ) ]
public async JavascriptResult run_javascript (string script, Cancellable? cancellable = null) throws Error

Warning: run_javascript is deprecated since 2.40.

Asynchronously run script in the context of the current page in this.

Note:

Use evaluate_javascript instead.

If WebKitSettings:enable-javascript is FALSE, this method will do nothing.

When the operation is finished, callback will be called. You can then call run_javascript.end to get the result of the operation.

Parameters:

this

a WebView

script

the script to run

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the script finished

user_data

the data to pass to callback function