NavigationCurrentEntryChangeEvent: from property

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

See also