X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML Audio/Video DOM controls Property

HTML audio Tag Reference HTML Audio/Video DOM Reference

Example

Enable controls for a video:

myVid=document.getElementById("video1");
myVid.controls=true;

Try it Yourself »

Definition and Usage

The controls property sets or returns if the browser should display standard audio/video controls.

Standard audio/video controls should include:

  • Play
  • Pause
  • Seeking
  • Volume
  • Fullscreen toggle (for video)
  • Captions/Subtitles (when available)
  • Track (when available)

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The controls property is supported in all major browsers.

Note: This property is not supported in Internet Explorer 8 and earlier.


Syntax

Set the controls property:

audio|video.controls=true|false

Return the controls property:

audio|video.controls

Property Values

Value Description
true Indicates that controls are displayed
false Default. Indicates that controls are NOT displayed

Technical Details

Return Value: Boolean, true|false
Default Value: false


HTML audio Tag Reference HTML Audio/Video DOM Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook