Webview object

Event Description
Webview.onReady() Event fired when Webview is initialized and ready to be used
Webview.onShow() Event fired when Webview is shown
Webview.onHide() Event fired when Webview is hidden
Webview.onCreate() Event fired when Webview has just been created (but not initialized)
Webview.onMessage() Event fired when Webview widget has received a JSON message from the web page.
Webview.onLoaded() Event fired when Webview widget has loaded the web page.
Property Description Access Type
Webview.x Get/set the Webview's horizontal position readwrite number
Webview.y Get/set the Webview's vertical position readwrite number
Webview.width Get/set the Webview's width readwrite number
Webview.height Get/set the Webview's height readwrite number
Webview.align Align the Webview relative to its parent readwrite boolean
Webview.enabled Enable/disable the Webview widget readwrite boolean
Webview.visible Controls whether the Webview appears on screen readwrite boolean
Webview.url Get/set the Webview actual URL readwrite string
Webview.title Get the title of the current web page readonly string
Webview.cangoback Check if the Webview can go to the previous page readonly boolean
Webview.cangoforward Check if the Webview can go to the next page readonly boolean
Webview.zoom Get/set the current Webview zoom level readwrite number
Webview.devtools Enable/disable the Webview developper tools readwrite boolean
Webview.acceleratorkeys Enable/disable the Webview-specific accelerator keys readwrite boolean
Webview.statusbar Enable/disable the Webview status bar readwrite boolean
Webview.contextmenu Enable/disable the Webview context menu readwrite boolean
Webview.parent Get the Webview's parent widget readonly Window | Groupbox | TabItem
Method Description Return value
Webview.constructor() Webview object constructor Webview
Webview.center() Centers the Webview on the parent widget -
Webview.show() Shows the Webview -
Webview.hide() Hides the Webview -
Webview.opendevtools() Opens the Devtools window -
Webview.eval() Evaluates a Javascript expression Task
Webview.addinitscript() Add a script to be executed before page loading -
Webview.reload() Reloads the current page -
Webview.goback() Go to the previous web page -
Webview.goforward() Go to the next page -
Webview.stop() Stops web page loading -
Webview.postmessage() Post a message to the toplevel document boolean
Webview.hostfromfolder() Maps a virtual hostname to a local folder boolean
Webview.restorehost() Restores a previously mapped virtual hostname boolean