JavaScript Documentation / webBrowser
This object contains methods for interacting with the in-app web browser.
webBrowser.open(url)
Navigates to a URL.
Parameters
- url required The URL to be opened.
Example
-
webBrowser.open('https://apple.com');
webBrowser.loadHTML(html)
Sets the webpage contents.
Parameters
- html required The HTML string to use as the contents of the webpage.
webBrowser.getURL()
Returns the webpage URL.
webBrowser.getTitle()
Returns the webpage title.