UrlLoadingEventArgs Class

Definition

Used to provide information about a link (<a>) clicked within a Blazor WebView.

Anchor tags with target="_blank" will always open in the default browser and the UrlLoading event won't be called.

public ref class UrlLoadingEventArgs : EventArgs
public class UrlLoadingEventArgs : EventArgs
type UrlLoadingEventArgs = class
    inherit EventArgs
Public Class UrlLoadingEventArgs
Inherits EventArgs
Inheritance
UrlLoadingEventArgs

Properties

Url

Gets the URL to be loaded.

UrlLoadingStrategy

The policy to use when loading links from the webview. Defaults to OpenExternally unless Url has a host matching the app origin, in which case the default becomes OpenInWebView.

This value should not be changed to OpenInWebView for external links unless you can ensure they are fully trusted.

Applies to