Firefox Tomorrow

web api instance property

Document: timeline property

View on MDN ↗

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 open().

This timeline expresses the time in milliseconds since 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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also