redirectEnd property

If there are HTTP redirects or equivalent when navigating and all redirects and equivalents are from the same origin, the redirectEnd property must return the time immediately after receiving the last byte of the response of the last redirect. Otherwise, this property must return zero.

Syntax

JavaScript

p = object.redirectEnd

Property values

Type: Integer

An Integer value that represents the time immediately after receiving the last byte of the response of the last redirect.

Standards information

Remarks

The value reported by the redirectEnd property represents the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).

This property is supported only for documents displayed in a Windows Store app using JavaScript. For more information, see Defining Document Compatibility.

Examples

The following example shows how to calculate the time required to redirect the document.


var oTiming = window.performance.timing;
var iTimeMS = oTiming.redirectEnd - oTiming.redirectStart;

See also

performanceTiming
redirectStart

 

 

Show:
© 2014 Microsoft