Oggetto traccia DOM HTML
Traccia oggetto
L'oggetto Track rappresenta un elemento HTML <track>.
Accedi a un oggetto Traccia
Puoi accedere a un elemento <track> usando getElementById():
var x = document.getElementById("myTrack");
Crea un oggetto traccia
Puoi creare un elemento <track> usando il metodo document.createElement():
var x = document.createElement("TRACK");
Tieni traccia delle proprietà dell'oggetto
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 |
Proprietà ed eventi standard
L'oggetto Track supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <traccia>