webview_init
public final Unit webview_init(CPointer<? extends CPointed> w, String js)
Content copied to clipboard
Injects JavaScript code at the initialization of the new page.
Every time the webview will open a new page - this initialization code will be executed. It is guaranteed that code is executed before window.onload
.
Parameters
w
the handle of webview, usually returned by webview_create
js
the JS code