-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
34 lines (22 loc) · 1.19 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "PerformanceScriptTiming: window property"
short-title: window
slug: Web/API/PerformanceScriptTiming/window
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.PerformanceScriptTiming.window
---
{{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`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef)).
## Examples
See [Long animation frame timing](/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing#examples) for examples related to the Long Animation Frames API.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- [Long animation frame timing](/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing)
- {{domxref("PerformanceLongAnimationFrameTiming")}}