Firefox Tomorrow

web api instance property

NavigationCurrentEntryChangeEvent: from property

View on MDN ↗

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);
});

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also