JavaScript Documentation / webBrowser

This object contains methods for interacting with the in-app web browser.

webBrowser.open(url)

Navigates to a URL.

Parameters

Example

webBrowser.open('https://apple.com');

webBrowser.loadHTML(html)

Sets the webpage contents.

Parameters

Example

webBrowser.loadHTML('<h1>Hello world!</h1>');

webBrowser.getURL()

Returns the webpage URL.

webBrowser.getTitle()

Returns the webpage title.