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.

unloadEventStart

Summary

Returns the time immediately before the user agent starts the unload event of the previous document. If there is no previous document or the previous document has a different origin than the current document, returns zero.

Property of apis/navigation timing/PerformanceTimingapis/navigation timing/PerformanceTiming

Syntax

Note: This property is read-only.

var result = PerformanceTiming.unloadEventStart;

Return Value

Returns an object of type unsigned longunsigned long

Examples

var perftime = performance.timing;
document.write("unloadEventStart: " + perftime.unloadEventStart + "<br />");

Notes

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

Related specifications

Navigation Timing 2
W3C Working Draft

Attributions