unloadEvent Property

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Measures the time required to unload the previous document from the window object.

Syntax

[ iTimeMS = ] MSPerformanceTiming.unloadEvent

Possible Values

iTimeMS The time required to receive a response or 0 if the document failed to load.

The property is read-only. The property has no default value.

Remarks

When you evaluate the value of the unloadEvent property, make sure that the document has fully loaded; otherwise, the property might return a value of zero (0).

The time measured by the unloadEvent property is the difference between the unloadEventStart and the unloadEventEnd 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 unloadEvent property.

var sText = " MS to unload the previous document.";
var iTime = window.msPerformance.timingMeasures.unloadEvent;
alert( "The document required " + iTime.toString() + sText );

Standards Information

There is no public standard that applies to this property.

Applies To

MSPerformanceTiming

See Also

MSPerformanceTiming, unloadEventStart, unloadEventEnd