redirectCount
Summary
Returns the number of redirects since the last non-redirect navigation under the current browsing context. If there is no redirect or there is any redirect that is not from the same origin as the destination document, returns zero.
Property of apis/navigation_timing/PerformanceNavigationapis/navigation_timing/PerformanceNavigation
Syntax
Note: This property is read-only.
var result = PerformanceNavigation.redirectCount;
Return Value
Returns an object of type unsigned shortunsigned short
Examples
var perfnavred = performance.navigation.redirectCount;
alert(perfnavred);
Related specifications
- W3C Navigation Timing Specification 2
- W3C Working Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article