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