MDN self-hosted library · e01.org

HTMLMediaElement: controlsList property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const video = document.createElement("video");
console.log(video.controlsList.value); // ""

video.controlsList.add("noremoteplayback");
console.log(video.controlsList.value); // "noremoteplayback"
js
const audio = document.createElement("audio");
audio.controlsList = "nodownload";