navigationType

The navigationType read-only property of the NavigationTransition interface returns the type of the ongoing navigation.

MDN Reference