AddHostObjectToScript Sample

The following buttons interact with the chrome.webview.hostObjects.sample object. Open DevTools console to try running whatever code you like on this object.

Get Property

Set Property

Indexed Property

Invoke Method

Invoke Callback

Date Objects