HTML DOM 추적 개체
추적 개체
Track 개체는 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 |
표준 속성 및 이벤트
Track 개체는 표준 속성 및 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <track> 태그