- :nothing
webview
show webview window with given url or html source
Parameters
webview content :string :literal
Attributes
| title | :string | set window title |
| width | :integer | set window width |
| height | :integer | set window height |
| fixed | window shouldn't be resizable | |
| maximized | start in maximized mode | |
| fullscreen | start in fullscreen mode | |
| borderless | show as borderless window | |
| topmost | set window as always-on-top | |
| debug | add inspector console | |
| on | :dictionary | execute code on specific events |
| inject | :string | inject JS code on webview initialization |
Returns
Examples
copywebview "Hello world!" ; (opens a webview windows with "Hello world!")
copywebview .width: 200 .height: 300 .title: "My webview app" ---This is my webpage
This is some content
--- ; (opens a webview with given attributes)