WebView.byId

Search for an element in the dom, using id. Returned element can forward calls to js.

struct WebView
byId
(
string id
)

See Also

bySelector

webview.byId("myid").innerText = "Hi!";
webview.byId("myid").setAttribute("href", "https://example.com");

Meta