Freigeben über


performance property

Provides access to timing related information regarding navigation and performance for the document that is loaded into the window object.

 

Syntax

HRESULT value = object.get_performance(any** p);

Property values

Type: Object

A reference to the performance object.

Standards information

Remarks

Windows Internet Explorer 9 and later. The performance object is supported only for documents displayed in standards mode.

Examples

The following example shows how to use feature detection to obtain a reference to the performance object when it is supported by the browser viewing the webpage.

if (!window.performance) {
   // performance is not supported.
} else {
    var obj = window.performance

See also

now

performanceNavigation

performanceTiming