loadEventEnd property

The loadEventEnd property must return the time when the load event of the current document is completed. It must return zero when the load event is not fired or is not completed.

Internet Explorer 9

 

Syntax

JavaScript

p = object.loadEventEnd

 

Property values

Type: Integer

An Integer value that represents the time when the onload event completed or 0 if the document cannot be loaded.

Standards information

Remarks

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

Windows Internet Explorer 9. This property is supported only for documents displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.

Examples

The following example shows how to calculate the amount of time required to execute the onload event for the document.


var oTiming = window.performance.timing;
var iLookupTimeMS = oTiming.loadEventEnd - oTiming.loadEventStart;

See also

performanceTiming
loadEventStart

 

 

Show:
© 2014 Microsoft