HTML-DOM -Track- Objekt
Objekt verfolgen
Das Track-Objekt repräsentiert ein HTML-<track>-Element.
Greifen Sie auf ein Track-Objekt zu
Sie können auf ein <track>-Element zugreifen, indem Sie getElementById() verwenden:
var x = document.getElementById("myTrack");
Erstellen Sie ein Track-Objekt
Sie können ein <track>-Element erstellen, indem Sie die Methode document.createElement() verwenden:
var x = document.createElement("TRACK");
Objekteigenschaften verfolgen
Property | Description |
---|---|
default | Sets or returns the default state of the track |
kind | Sets or returns the value of the kind attribute of the track |
label | Sets or returns the value of the label attribute of the track |
readyState | Returns the current state of the track resource |
src | Sets or returns the value of the src attribute of the track |
srclang | Sets or returns the value of the srclang attribute of the track |
track | Returns a TextTrack object representing the track element's text track data |
Standardeigenschaften und -ereignisse
Das Track-Objekt unterstützt auch die Standardeigenschaften und -ereignisse .
Verwandte Seiten
HTML-Referenz: HTML-<track>-Tag