HTML Audio/Video DOM Reference
Enable controls for a video:
The controls property sets or returns whether the browser should display standard audio/video controls.
Standard audio/video controls should include:
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
controls | Yes | 9.0 | 3.5 | Yes | Yes |
Return the controls property:
Set the controls property:
Value | Description |
---|---|
true | Indicates that controls are displayed |
false | Default. Indicates that controls are NOT displayed |
Return Value: | A Boolean, returns true if the controls are displayed, otherwise it returns false |
---|---|
Default Value: | false |