The PerformanceNavigation interface represents information about how the navigation to the current document was done.
An object of this type can be obtained by calling the Performance.navigation read-only attribute.
The PerformanceNavigation interface doesn't inherit any properties.
PerformanceNavigation.type Read only
unsigned short which indicates how the navigation to this page was done. Possible values are: TYPE_NAVIGATE (0)TYPE_RELOAD (1)Location.reload() method.TYPE_BACK_FORWARD (2)TYPE_RESERVED (255)PerformanceNavigation.redirectCount Read only
unsigned short representing the number of REDIRECTs done before reaching the page.The Performance interface doesn't inherit any methods.
PerformanceNavigation.toJSON()
PerformanceNavigation object.| Specification | Status | Comment |
|---|---|---|
| Navigation Timing The definition of 'PerformanceNavigation' in that specification. | Recommendation | Initial definition. |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | No support | (Yes) | 7.0 (7.0) | 9.0 | No support | No support |
toJSON()
| No support | ? | 25.0 (25.0) | 9.0 | No support | No support |
| Feature | Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| Basic support | No support | (Yes) | 7.0 (7.0) | 1.0 (7.0) | 9.0 | No support | No support |
toJSON()
| No support | ? | 25.0 (25.0) | 1.2 (25.0) | 9.0 | No support | No support |
Performance that allows access to an object of this type.PerformanceNavigationTiming (part of Navigation Timing Level 2)
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation