ICoreWebView2NewWindowRequestedEventArgs.get_IsUserInitiated

TRUE when the new window request was initiated through a user gesture. Examples of user initiated requests are:

- Selecting an anchor tag with target - Programmatic window open from a script that directly run as a result of user interaction such as via onclick handlers.

Non-user initiated requests are programmatic window opens from a script that are not directly triggered by user interaction, such as those that run while loading a new page or via timers. The Microsoft Edge popup blocker is disabled for WebView so the app is able to use this flag to block non-user initiated popups.

interface ICoreWebView2NewWindowRequestedEventArgs
@" propget"
HRESULT
get_IsUserInitiated

Meta