klyn.gui.windows.browser.BrowserWidget.navigateToString
method

    public navigateToString(html as String, baseUrl as String = "about:blank", appendHistory as Boolean = true) as Void:

Description

Loads an in-memory HTML document without filesystem or network access.

Parameters

Parameter | Description
--- | ---
`html` | HTML source.
`baseUrl` | Base URL used by relative links and resources.
`appendHistory` | Whether the in-memory document becomes a browser history entry. Live previews should pass `false`.

Example

    browser.navigateToString("<h1>Hello Klyn</h1>", "about:blank")
    browser.navigateToString("<h1>Live preview</h1>", "about:blank", false)