Back to Content

PerformanceScriptTiming: window property

files/en-us/web/api/performancescripttiming/window/index.md

latest984 B
Original Source

{{SeeCompatTable}}{{APIRef("Performance API")}}

The window read-only property of the {{domxref("PerformanceScriptTiming")}} interface returns a reference to a {{domxref("Window")}} object representing the window of the container (i.e., either the top-level document or an {{htmlelement("iframe")}}) in which the long animation frame (LoAF)-causing script was executed.

Value

A {{domxref("Window")}} object, or null if the window is no longer active (the object reference is a WeakRef).

Examples

See Long animation frame timing for examples related to the Long Animation Frames API.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also