initJS

public final Unit initJS(String js)

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

js

the JS code