MDN self-hosted library · e01.org

NavigationCurrentEntryChangeEvent: from property

Navigation API

Open notebook · 1 cells web-api-instance-property upstream source

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

Specifications

Browser compatibility

See also