Skip to content

Commit ab52be5

Browse files
authored
docs: add note about new-window post data usage
1 parent 65e36de commit ab52be5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api/web-contents.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ Returns:
152152
sent, depending on the referrer policy.
153153
* `postBody` [PostBody](structures/post-body.md) (optional) - The post data that
154154
will be sent to the new window, along with the appropriate headers that will
155-
be set. If no post data is to be sent, the value will be `null`.
155+
be set. If no post data is to be sent, the value will be `null`. Only defined
156+
when the window is being created by a form that set `target=_blank`.
156157

157158
Emitted when the page requests to open a new window for a `url`. It could be
158159
requested by `window.open` or an external link like `<a target='_blank'>`.

0 commit comments

Comments
 (0)