This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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