NavigateEventInit Class

https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigateeventinit

public sealed class NavigateEventInit : EventInit
Inheritance
EventInit NavigateEventInit

Constructors

NameDescription
NavigateEventInit()

NavigateEventInit()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public NavigateEventInit()

No documentation is available.

Properties

NameDescription
CanInterceptGets a value indicating whether the navigation can be intercepted to become a same-document navigation.
DestinationGets the destination of the navigation.
DownloadRequestGets the download attribute value of the link that started the navigation, or null.
FormDataGets the data of the form submission that started the navigation, if any.
HasUAVisualTransitionGets a value indicating whether the user agent already performed a visual transition for the navigation.
HashChangeGets a value indicating whether the navigation only changes the fragment of the URL.
InfoA value of the script engine, or null for undefined.
NavigationTypeGets the type of the navigation: push, replace, reload or traverse.
SignalGets the signal that is aborted when the navigation is canceled.
SourceElementGets the element that started the navigation, or null.
UserInitiatedGets a value indicating whether the navigation is initiated by the user.

Gets a value indicating whether the navigation can be intercepted to become a same-document navigation.

public bool CanIntercept { get; init; }

Gets the destination of the navigation.

public required NavigationDestination Destination { get; init; }

DownloadRequest

NavigationEvents.cs

Gets the download attribute value of the link that started the navigation, or null.

public string? DownloadRequest { get; init; }

Gets the data of the form submission that started the navigation, if any.

public FormData? FormData { get; init; }

HasUAVisualTransition

NavigationEvents.cs

Gets a value indicating whether the user agent already performed a visual transition for the navigation.

public bool HasUAVisualTransition { get; init; }

Gets a value indicating whether the navigation only changes the fragment of the URL.

public bool HashChange { get; init; }

A value of the script engine, or null for undefined.

public object? Info { get; init; }

Gets the signal that is aborted when the navigation is canceled.

public required AbortSignal Signal { get; init; }

SourceElement

NavigationEvents.cs

Gets the element that started the navigation, or null.

public Element? SourceElement { get; init; }

UserInitiated

NavigationEvents.cs

Gets a value indicating whether the navigation is initiated by the user.

public bool UserInitiated { get; init; }