Limited availability
The controlsList
property of the HTMLMediaElement
interface returns a DOMTokenList that helps the user agent select what controls to show on the media element whenever the user agent shows its own set of controls. The DOMTokenList takes one or more of three possible values: nodownload
, nofullscreen
, and noremoteplayback
.
A DOMTokenList
.
The value of controlsList
can be set by passing a string representing the DOMTokenList
's value
property.
The controlsList
property returns a DOMTokenList
object containing the current set value.
const video = document.createElement("video");
console.log(video.controlsList.value); // ""
video.controlsList.add("noremoteplayback");
console.log(video.controlsList.value); // "noremoteplayback"
Setting the controlsList property
You can also modify controlsList
by directly setting it to a string containing the new value.
const audio = document.createElement("audio");
audio.controlsList = "nodownload";
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