एचटीएमएल डोम ट्रैक ऑब्जेक्ट
ट्रैक ऑब्जेक्ट
ट्रैक ऑब्जेक्ट एक HTML <track> तत्व का प्रतिनिधित्व करता है।
ट्रैक ऑब्जेक्ट तक पहुंचें
आप getElementById() का उपयोग करके <track> तत्व तक पहुंच सकते हैं:
var x = document.getElementById("myTrack");
ट्रैक ऑब्जेक्ट बनाएं
आप document.createElement() विधि का उपयोग करके एक <track> तत्व बना सकते हैं:
var x = document.createElement("TRACK");
ट्रैक वस्तु गुण
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 |
मानक गुण और घटनाएँ
ट्रैक ऑब्जेक्ट मानक गुणों और ईवेंट का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML संदर्भ: HTML <ट्रैक> टैग