Skip to content

Commit 64c72cc

Browse files
Updated background to include additional creation examples
1 parent 75051eb commit 64c72cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

specs/ExtendedNewWindowRequested.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Background
22
WebView2 raises the `NewWindowRequested` event when a new window is opened. The WebView2 team has been asked to include the name of the new window
33
being created as a parameter of `NewWindowRequestedEventArgs`. This window name is the name given to the window when it is opened
4-
using `window.open(url, windowName)`.
4+
using `window.open(url, windowName)` or via html such as `<a target="windowName">...</a>` or `<iframe name="windowName">...</iframe>`.
55

66
In this document we describe the updated API. We'd appreciate your feedback.
77

@@ -83,7 +83,7 @@ interface ICoreWebView2NewWindowRequestedEventArgs2 : ICoreWebView2NewWindowRequ
8383
/// where the windowName parameter corresponds to `Name` property.
8484
/// If no windowName is passed to `window.open`, then the `Name` property
8585
/// will be set to an empty string. Additionally, if window is opened through other means,
86-
/// such as `<a target="windowName">...</a>` or `<iframe name="windowName>...</iframe>`,
86+
/// such as `<a target="windowName">...</a>` or `<iframe name="windowName">...</iframe>`,
8787
/// then the `Name` property will be set accordingly. In the case of target=_blank,
8888
/// the `Name` property will be an empty string.
8989
/// Opening a window via ctrl+clicking a link would result in the `Name` property

0 commit comments

Comments
 (0)