Answers for "html5 video hide controls javascript"

0

html video hide controls

<video width="320" height="240" controls="hidden">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>
Posted by: Guest on July-12-2021
0

html5 video hide controls javascript

// add an id to the <video> tag
// select element with given id and remove the "controls" attribute

const element = document.getElementById("YourElementId");
element.removeAttribute("controls");
Posted by: Guest on May-09-2022

Browse Popular Code Answers by Language