webview

show webview window with given url or html source


Parameters

webview content :string :literal

Attributes

title:stringset window title
width:integerset window width
height:integerset window height
fixedwindow shouldn't be resizable
maximizedstart in maximized mode
fullscreenstart in fullscreen mode
borderlessshow as borderless window
topmostset window as always-on-top
debugadd inspector console
on:dictionaryexecute code on specific events
inject:stringinject JS code on webview initialization

Returns

  • :nothing

Examples

copy
webview "Hello world!" ; (opens a webview windows with "Hello world!")

copy
webview .width: 200 .height: 300 .title: "My webview app" ---

This is my webpage

This is some content

--- ; (opens a webview with given attributes)

Related