Baseline Widely available
The default
property of the 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 <track>
element's boolean default
attribute, returning true
if present and false
otherwise.
A Boolean.
Exampleconst trackElement = document.getElementById("exampleTrack");
console.log(trackElement.default);
trackElement.default = true;
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4