IntersectionObserverEntry: time property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Intersection Observer API")}}
The **time** read-only property of the {{domxref("IntersectionObserverEntry")}} interface is a {{domxref("DOMHighResTimeStamp")}} that indicates the time at which the intersection change occurred relative to the time at which the document was created.
Value
A {{domxref("DOMHighResTimeStamp")}} which indicates the time at which the {{domxref("IntersectionObserverEntry.target", "target")}} element experienced the intersection change described by the IntersectionObserverEntry. The time is specified in milliseconds since the creation of the containing document.
Examples
See Timing element visibility with the Intersection Observer API for a complete example which uses the time property to track how long elements are visible to the user.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}