File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Background
22WebView2 raises the ` NewWindowRequested ` event when a new window is opened. The WebView2 team has been asked to include the name of the new window
33being 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
66In 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
You can’t perform that action at this time.
0 commit comments