redirect Property
.png)
[This documentation is preliminary and is subject to change.]
Measures the time required to process server redirection for the document that is loaded into the window object.
Syntax
[ iTimeMS = ] MSPerformanceTiming.redirect
Possible Values
iTimeMS The time required to redirect the document or 0if the document was loaded from a cache.The property is read-only. The property has no default value.
Remarks
When you evaluate the value of the redirect property, make sure that the document has fully loaded. If the document is not fully loaded, the property might return a value of zero (
0).The time measured by the request property is the difference between the redirectStart and the redirectEnd properties of the window.msPerformance.timing property.
For a list of other performance measures and the order in which they occur, see the MSPerformanceTimingMeasures object.
Example
The following example shows how to get the value of the redirect property.
var sText = " MS to redirect the document."; var iTime = window.msPerformance.timingMeasures.redirect; alert( "The document required " + iTime.toString() + sText );
Standards Information
There is no public standard that applies to this property.
Applies To
MSPerformanceTiming
See Also