W3cubDocs

/Web APIs

Document: timeline property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2020⁩.

The timeline readonly property of the Document interface represents the default timeline of the current document. This timeline is a special instance of DocumentTimeline.

This timeline is unique to each document and persists for the lifetime of the document including calls to Document.open().

This timeline expresses the time in milliseconds since Performance.timeOrigin. Prior to the time origin, the timeline is inactive, and its currentTime is null.

Note: A document timeline that is associated with a non-active document (a Document not associated with a Window, <iframe>, or <frame>) is also considered to be inactive.

Value

A DocumentTimeline object.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
timeline 84 84 75 70 13.1 84 79 60 13.4 14.0 84 13.4

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Document/timeline