Track src attribute

Definition and Usage

src Sets or returns the value of the track's src attribute.

The HTML src attribute specifies the URL of the track file.

See also:

HTML Reference Manual:HTML <track> src বৈশিষ্ট্য

Instance

Example 1

Get the URL of the track file:

var x = document.getElementById("myTrack").src;

The result of x can be:

https://www.codew3c.com/jsref/subtitles_en.vtt

Example 2

Change the URL of the track file:

document.getElementById("myTrack").src = "subtitles_no.vtt";

Syntax

return src property:

trackObject.src

src বৈশিষ্ট্য সংযোজন

trackObject.src = URL

প্রতিভূত মূল্য

মূল্য বর্ণনা
URL ট্র্যাক ফাইলের URL-কে নির্দেশ করে

প্রযুক্তিগত বিবরণ

ফলাফল শব্দমালা মূল্য, ট্র্যাক ফাইলের URL-কে নির্দেশ করে।সম্পূর্ণ URL-কে ফিরিয়ে দেয়, যেমন http://।

ব্রাউজার সমর্থন

চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থিত 10.0 সমর্থিত না সমর্থিত না সমর্থিত