Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Document.timeline

Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The timeline readonly property of the Document interface represents the default timeline of the current document. This timeline is a special instance of DocumentTimeline that is automatically created on page load. 

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

The time values for this timeline are calculated as a fixed offset from the global clock such that the zero time corresponds to the navigationStart moment plus a signed delta known as the origin time. Prior to establishing the navigationStart moment, the document timeline is inactive.

Note: A document timeline that is associated with a non-active document is also considered to be inactive.

Syntax

var pageTimeline = document.timeline;
var thisMoment = pageTimeline.currentTime;

Value

A DocumentTimeline object.

Specifications

Specification Status Comment
Web Animations
The definition of 'document.timeline' in that specification.
Working Draft Editor's draft.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support 48 (48)[1] No support No support No support
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support No support No support No support No support No support No support No support

[1] Currently supported only in Firefox Nightly.

See also

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : chrisdavidmills, rachelnabors
 Dernière mise à jour par : chrisdavidmills,