JavaScript Documentation / webBrowser

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

webBrowser.open(url)

Navigates to a URL. This method is not supported in extension.

Parameters

  • url required The URL to be opened.

Example

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

webBrowser.loadHTML(html)

Sets the webpage contents. This method is not supported in extension.

Parameters

  • html required The HTML string to use as the contents of the webpage.

Example

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

webBrowser.getURL()

Returns the webpage URL. This method is not supported in extension.

webBrowser.getTitle()

Returns the webpage title. This method is not supported in extension.