docs: allowpopups attribute
This commit is contained in:
parent
f07fea1936
commit
9cbdde2eba
1 changed files with 9 additions and 1 deletions
|
@ -149,6 +149,14 @@ This value can only be modified before the first navigation, since the session
|
||||||
of an active renderer process cannot change. Subsequent attempts to modify the
|
of an active renderer process cannot change. Subsequent attempts to modify the
|
||||||
value will fail with a DOM exception.
|
value will fail with a DOM exception.
|
||||||
|
|
||||||
|
### `allowpopups`
|
||||||
|
|
||||||
|
```html
|
||||||
|
<webview src="https://www.github.com/" allowpopups></webview>
|
||||||
|
```
|
||||||
|
|
||||||
|
If "on", the guest page will be allowed to open new windows.
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
The `webview` tag has the following methods:
|
The `webview` tag has the following methods:
|
||||||
|
@ -496,7 +504,7 @@ Returns:
|
||||||
* `url` String
|
* `url` String
|
||||||
* `frameName` String
|
* `frameName` String
|
||||||
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
|
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
|
||||||
`new-window` and `other`
|
`new-window` and `other`.
|
||||||
|
|
||||||
Fired when the guest page attempts to open a new browser window.
|
Fired when the guest page attempts to open a new browser window.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue