HTMLTrackElement: default property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ApiRef("HTML DOM")}}
The **default** property of the {{domxref("HTMLTrackElement")}} interface represents whether the track will be enabled if the user's preferences do not indicate that another track would be more appropriate. It reflects the {{htmlelement("track")}} element's boolean [default](/en-US/docs/Web/HTML/Reference/Elements/track#default) attribute, returning true if present and false otherwise.
Value
A Boolean.
Example
js
const trackElement = document.getElementById("exampleTrack");
console.log(trackElement.default);
trackElement.default = true;Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("HTMLTrackElement.kind")}}
- {{domxref("HTMLTrackElement.label")}}