NavigationInterceptOptions Class

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

public sealed class NavigationInterceptOptions

Constructors

NameDescription
NavigationInterceptOptions()

NavigationInterceptOptions()

public NavigationInterceptOptions()

No documentation is available.

Properties

NameDescription
FocusResetGets whether the focus is reset after the transition or left to the page.
HandlerGets the callback run after the navigation commits; the promise it returns settles the transition.
PrecommitHandlerGets the callback run before the navigation commits; it can redirect or delay the commit.
ScrollGets whether the scroll position is restored after the transition or left to the page.

Gets whether the focus is reset after the transition or left to the page.

public NavigationFocusReset? FocusReset { get; init; }

Gets the callback run after the navigation commits; the promise it returns settles the transition.

public NavigationInterceptHandler? Handler { get; init; }

PrecommitHandler

NavigationEvents.cs

Gets the callback run before the navigation commits; it can redirect or delay the commit.

public NavigationPrecommitHandler? PrecommitHandler { get; init; }

Gets whether the scroll position is restored after the transition or left to the page.

public NavigationScrollBehavior? Scroll { get; init; }