PerformanceNavigationTiming: type property - Web APIs | MDN
The type read-only property returns the type of navigation.