YouTip LogoYouTip

Dom Obj Track

# HTML DOM Track Object * * * ## Track Object The Track object is new in HTML5. The Track object represents an HTML `` element. ### Accessing a Track Object You can access a `` element by using `getElementById()`: ```javascript var x = document.getElementById("myTrack"); ### Creating a Track Object You can create a `` element by using the `document.createElement()` method: ```javascript var x = document.createElement("TRACK"); ## Track Object Properties | Property | Description | | --- | --- | | (#) | Sets or returns the default state of the track | | (#) | Sets or returns the value of the kind attribute of the track | | (#) | Sets or returns the value of the label attribute of the track | | (#) | Returns the state of the current track resource | | (#) | Sets or returns the value of the src attribute of the track | | (#) | Sets or returns the value of the srclang attribute of the track | | track | Returns the TextTrack object, representing the text data of the track element | ## Standard Properties and Events The Track object also supports standard (#) and (#). * * * ## Related Articles HTML Reference: [HTML `` Tag](#) [](#)(#) (#)[](#) [Volcengine Coding Plan supports mainstream large models like Doubao, GLM, DeepSeek, Kimi, MiniMax, officially supplied, stable and reliable. Configuration Guide Β₯9.9/month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Prop Track DefaultPython3 Stdlib β†’