Vital.sandbox
Webview

self:load_html

Client

Loads raw HTML content into the webview


Syntax

local status = self:load_html(html)

Parameters

TypeNameDescription
stringhtmlRaw HTML string to load into the webview

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Load raw HTML into a webview
local browser = webview.create()

browser:load_html("<h1>Hello World</h1>")

On this page