다음을 통해 공유


CoreWebView2NavigationStartingEventArgs.IsUserInitiated Property

Definition

true when the new window request was initiated through a user gesture.

public bool IsUserInitiated { get; }
member this.IsUserInitiated : bool
Public ReadOnly Property IsUserInitiated As Boolean

Property Value

Remarks

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.

Applies to