klyn.gui.windows.browser.BrowserWidget.executeScript
method

    public executeScript(script as String) as String:

Description

Executes the embedded DOM scripting profile against the current page.

Supported operations cover title/location assignment, `getElementById`, `textContent`, `innerHTML`, inline style assignment and `classList.add/remove/toggle`. No native or host process API is exposed.

Parameters

Parameter | Description
--- | ---
`script` | Script source.

Returns

String value produced by a `return` statement, or `""`.

Example

    browser.executeScript("document.getElementById('status').textContent = 'Ready';")