Table of Contents

Class NavigationActivation

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The NavigationActivation interface of the Navigation API represents a recent cross-document navigation. It contains the navigation type and outgoing and inbound document history entries.
[Value("NavigationActivation")]
public class NavigationActivation
Inheritance
NavigationActivation
Inherited Members

Remarks

This object is accessed via the Activation and Activation properties. Note that, in each case, the NavigationActivation represents a different navigation:

-Navigation API
-View Transition API

See also on MDN

Constructors

NavigationActivation()

public NavigationActivation()

Properties

Entry

NOTE
Experimental
The entry read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the inbound ("to") document in the navigation. This is equivalent to the CurrentEntry property at the moment the inbound document was activated.
[Value("entry")]
public NavigationHistoryEntry Entry { get; }

Property Value

NavigationHistoryEntry

A NavigationHistoryEntry object.

Remarks

There are some cases in which either the from or entry NavigationHistoryEntry objects would not be viable targets for the traverseTo() method, as they might not be retained in history. For example, the document can be activated using location.replace() or its initial entry could be replaced by history.replaceState(). However, those entries' url properties and getState() methods are still accessible.

-Navigation API
-View Transition API

See also on MDN

From

NOTE
Experimental
The from read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the outgoing ("from") document in the navigation.
[Value("from")]
public NavigationHistoryEntry? From { get; }

Property Value

NavigationHistoryEntry

A NavigationHistoryEntry object, or null if the outgoing document is:

Remarks

NavigationType

NOTE
Experimental
The navigationType read-only property of the NavigationActivation interface contains a string indicating the type of navigation.
[Value("navigationType")]
public NavigationType NavigationType { get; }

Property Value

NavigationType

A string representing the type of navigation the NavigationActivation relates to. Possible values are:

Remarks