NavigationCurrentEntryChangeEvent: from property
Baseline 2026>
Newly available
Since January 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The from read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
Value
A NavigationHistoryEntry object.
Examples
js
navigation.addEventListener("currententrychange", (event) => {
console.log(event.from);
});
Specifications
| Specification |
|---|
| HTML> # dom-navigationcurrententrychangeevent-from-dev> |