HTMLTrackElement: readyState-Eigenschaft
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Die schreibgeschützte Eigenschaft readyState
des HTMLTrackElement
-Interfaces gibt eine Zahl zurück, die den Bereitschaftszustand der Textspur des <track>
-Elements darstellt:
- NONE: Der Zustand der nicht geladenen Textspur.
- LOADING: Der Ladezustand der Textspur.
- LOADED: Der geladene Zustand der Textspur.
- ERROR: Der Zustand der fehlgeschlagenen Ladeoperation der Textspur.
Wert
Eine Zahl; 0
, 1
, 2
oder 3
.
Beispiel
js
const trackElement = document.getElementById("exampleTrack");
console.log(trackElement.readyState); // 0, 1, 2, or 3
Spezifikationen
Specification |
---|
HTML # dom-track-readystate-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
readyState |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.