docs: specify BrowserWindow features passable to window.open (#14702)
This commit is contained in:
parent
9bb6c9dc99
commit
8d87dffe01
1 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,12 @@ Returns [`BrowserWindowProxy`](browser-window-proxy.md) - Creates a new window
|
||||||
and returns an instance of `BrowserWindowProxy` class.
|
and returns an instance of `BrowserWindowProxy` class.
|
||||||
|
|
||||||
The `features` string follows the format of standard browser, but each feature
|
The `features` string follows the format of standard browser, but each feature
|
||||||
has to be a field of `BrowserWindow`'s options.
|
has to be a field of `BrowserWindow`'s options. These are the features you can set via `features` string: `zoomFactor`, `nodeIntegration`, `preload`, `javascript`, `contextIsolation`, `webviewTag`.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
```js
|
||||||
|
window.open('https://github.com', '_blank', 'nodeIntegration=no')
|
||||||
|
```
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue