Expose loadURL for the webview tag.

This commit is contained in:
Charlie Hess 2016-01-21 13:31:35 -08:00
parent 2e8a2c3a7f
commit 7192a8517b
2 changed files with 12 additions and 0 deletions

View file

@ -171,6 +171,17 @@ webview.addEventListener("dom-ready", function() {
});
```
### `<webview>.loadURL(url[, options])`
* `url` URL
* `options` Object (optional), properties:
* `httpReferrer` String - A HTTP Referrer url.
* `userAgent` String - A user agent originating the request.
* `extraHeaders` String - Extra headers separated by "\n"
Loads the `url` in the webview, the `url` must contain the protocol prefix,
e.g. the `http://` or `file://`.
### `<webview>.getURL()`
Returns URL of guest page.