The HTMLMediaElement.controls property reflects the controls HTML attribute, which controls whether user interface controls for playing the media item will be displayed.


var ctrls = video.controls;
audio.controls = true;


A Boolean. A value of true means controls will be displayed.


var obj = document.createElement('video');
obj.controls = true;


Specification Status Comment
HTML Living Standard
The definition of 'HTMLMediaElement.controls' in that specification.
Living Standard No change from HTML5
The definition of 'HTMLMediaElement.controls' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
controlsChrome Full support 43Edge Full support 12Firefox Full support 3.5IE Full support 9Opera Full support YesSafari Full support 6WebView Android Full support 43Chrome Android Full support 43Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?


Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, sideshowbarker, fscholz, erikadoyle, markg
Last updated by: mdnwebdocs-bot,