webview_init

abstract fun webview_init(webview: Pointer?, js: String)

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

webview

the handle of webview, usually returned by webview_create

js

the JS code