Objeto de pista HTML DOM
Seguir objeto
El objeto Track representa un elemento HTML <track>.
Acceder a un objeto de seguimiento
Puede acceder a un elemento <track> usando getElementById():
var x = document.getElementById("myTrack");
Crear un objeto de seguimiento
Puede crear un elemento <track> utilizando el método document.createElement():
var x = document.createElement("TRACK");
Seguimiento de propiedades de objetos
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 |
Propiedades y eventos estándar
El objeto Track también es compatible con las propiedades y los eventos estándar .
páginas relacionadas
Referencia HTML: etiqueta HTML <pista>