Objek Pelacakan DOM HTML
Lacak Objek
Objek Track mewakili elemen <track> HTML.
Akses Objek Trek
Anda dapat mengakses elemen <track> dengan menggunakan getElementById():
var x = document.getElementById("myTrack");
Buat Objek Trek
Anda dapat membuat elemen <track> dengan menggunakan metode document.createElement() :
var x = document.createElement("TRACK");
Lacak Properti Objek
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 |
Properti dan Acara Standar
Objek Track juga mendukung properti dan event standar .
Halaman Terkait
Referensi HTML: tag <track> HTML