domInteractive property

The domInteractive property must return the time immediately before the user agent sets the current document readiness to interactive.

Internet Explorer 9

 

Syntax

JavaScript

p = object.domInteractive

 

Property values

Type: Integer

An Integer value that represents the time immediately before the user agent sets the current document readiness to interactive.

Standards information

Remarks

The value of the domInteractive property is controlled by the readyState property of the document object associated with the window object. The value of the domInteractive property is updated when the readyState property is set to interactive. If the document cannot be loaded, the value of the domInteractive property is available after the onload event has finished executing.

The value reported by the domInteractive 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 time required to initialize the DOM content for the document.


var oTiming = window.performance.timing;
var iLoadTimeMS = oTiming.domInteractive - oTiming.domLoading;

See also

performanceTiming
domLoading

 

 

Show:
© 2014 Microsoft