تگ track در JavaScript

چاپ

شیء track

the track object is new in html5.

شیء track نماینده تگ <track> در html است.

دسترسی به شیء track

برای دسترسی به تگ <track> می توان از متد ()getElementById استفاده نمود:

var x = document.getElementById("mytrack");

ایجاد یک شیء track

برای ایجاد تگ <track> می توان از متد ()document.createelemet استفاده نمود:

var x = document.createElement("track");

خصوصیت های شیء track

متد توضیحات
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

خصوصیت ها و رویدادهای استاندارد

این شیء، خصوصیت ها و رویدادهای استاندارد javascript را پشتیبانی می کند.

properties and events.


آموزش های مرتبط

مرجع تگ ها: html <track> tag