NavigationCurrentEntryChangeEvent: navigationType property

The navigationType read-only property of the NavigationCurrentEntryChangeEvent interface returns the type of the navigation that resulted in the change. The property may be null if the change occurs due to Navigation.updateCurrentEntry().

Value

An enumerated value representing the type of navigation.

The possible values are:

Examples

js
navigation.addEventListener("currententrychange", (event) => {
  console.log(event.navigationType);
});

Specifications

See also