Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLMediaElement
  4. controlsList

HTMLMediaElement: controlsList property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

ThecontrolsList property of theHTMLMediaElement interface returns a DOMTokenList that helps the useragent select what controls to show on the media element whenever the user agent showsits own set of controls. The DOMTokenList takes one or more of three possible values:nodownload,nofullscreen, andnoremoteplayback.

Value

ADOMTokenList.

The value ofcontrolsList can be set by passing a string representing theDOMTokenList'svalue property.

Examples

Getting the controlsList property

ThecontrolsList property returns aDOMTokenList object containing the current set value.

js
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 modifycontrolsList by directly setting it to a string containing the new value.

js
const audio = document.createElement("audio");audio.controlsList = "nodownload";

Specifications

Specification
Unknown specification
# solution-outline

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp