NavigationCurrentEntryChangeEvent: from property
Navigation API
Navigation API
The from read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
Value
A NavigationHistoryEntry object.
Examples
navigation.addEventListener("currententrychange", (event) => {
console.log(event.from);
});