You can create a control to display local or remote web pages in your App using the CreateWebView method.
If you are loading remote web pages, then you might want to use the SetOnProgress method to set the name of a callback function that you want called to report the progress of loading the page.
You can use the LoadUrl method to load an internal or external web page or the LoadHtml method to load text directly from within your App.
web.LoadUrl( url, options );
web.LoadHtml( html, baseFolder, options );
If you need to, you can use the Execute method to execute JavaScript code within the WebView.
web.Execute( text );
Methods
The following methods are available on the WebView object:
Back()
Batch(
properties )
CanGoBack() → Boolean
CanGoForward() → Boolean
Focus()
Forward()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHomeUrl() → String: url path
GetParent() → app object
GetType() → String: “WebView”
GetUrl() → String: url path
Gone()
Hide()
IsEnabled() → Boolean
IsVisible() → Boolean
LoadFailed() → Boolean
Print()
Reload()
SetEnabled(
enable )
SetErrorPage(
url )
SetTextZoom(
zoom )
SetTouchMode(
mode )
Show()
Stop()