executeJavaScript

abstract fun executeJavaScript(code: String, url: String, line: Int)

Execute a string of JavaScript code in this frame. The url parameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. The line parameter is the base line number to use for error reporting.

Parameters

code

The code to be executed.

url

The URL where the script in question can be found.

line

The base line number to use for error reporting.