init

public final Unit init(String js)

Injects JavaScript code at the initialization of the new page.

Same as initJS. 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

js

the JS code