Obiekt śledzenia HTML DOM
Śledź obiekt
Obiekt Track reprezentuje element HTML <track>.
Uzyskaj dostęp do obiektu śledzenia
Możesz uzyskać dostęp do elementu <track> za pomocą getElementById():
var x = document.getElementById("myTrack");
Utwórz obiekt śledzenia
Możesz utworzyć element <track> za pomocą metody document.createElement():
var x = document.createElement("TRACK");
Śledź właściwości obiektu
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 |
Standardowe właściwości i zdarzenia
Obiekt Track obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <track>