docs: update window-open.md to include target (#39162)

Update window-open.md to include target
This commit is contained in:
Michaela Laurencin 2023-07-24 06:33:41 -04:00 committed by GitHub
parent 2caf08059e
commit 09e6e4b9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ window.open('https://github.com', '_blank', 'top=500,left=200,frame=false,nodeIn
* Non-standard features (that are not handled by Chromium or Electron) given in * Non-standard features (that are not handled by Chromium or Electron) given in
`features` will be passed to any registered `webContents`'s `features` will be passed to any registered `webContents`'s
`did-create-window` event handler in the `options` argument. `did-create-window` event handler in the `options` argument.
* `frameName` follows the specification of `windowName` located in the [native documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#parameters). * `frameName` follows the specification of `target` located in the [native documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#parameters).
* When opening `about:blank`, the child window's [`WebPreferences`](structures/web-preferences.md) will be copied * When opening `about:blank`, the child window's [`WebPreferences`](structures/web-preferences.md) will be copied
from the parent window, and there is no way to override it because Chromium from the parent window, and there is no way to override it because Chromium
skips browser side navigation in this case. skips browser side navigation in this case.