NavigationTransition: from property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Thefrom read-only property of theNavigationTransition interface returns theNavigationHistoryEntry that the transition is coming from.
In this article
Value
ANavigationHistoryEntry object.
Examples
js
console.log(navigation.transition.from);Specifications
| Specification |
|---|
| HTML> # dom-navigationtransition-from-dev> |