Merge pull request #1932 from samueleaton/master
adds example for "before using methods"
This commit is contained in:
commit
8e4581a3c0
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,14 @@ If "on", the guest page will have web security disabled.
|
|||
|
||||
## Methods
|
||||
|
||||
The webview element must be loaded before using the methods.
|
||||
**Example**
|
||||
```javascript
|
||||
webview.addEventListener("dom-ready", function(){
|
||||
webview.openDevTools();
|
||||
});
|
||||
```
|
||||
|
||||
### `<webview>`.getUrl()
|
||||
|
||||
Returns URL of guest page.
|
||||
|
|
Loading…
Reference in a new issue