Sandbox Turky2

Jump to navigation Jump to search
This column width is 85% of the screen width (and has a background color)

This column is 30% counted from 85% of the screen width

This column is 70% counted from 85% of the screen width (and has a background color)


<html> <body>

<button onclick="myFunction()" type="button">Check if the video has a media controller</button>

<video id="myVideo" width="320" height="176" controls>

 <source src="mov_bbb.mp4" type="video/mp4">
 <source src="mov_bbb.ogg" type="video/ogg">
 Your browser does not support HTML5 video.

</video>

<script> var vid = document.getElementById("myVideo");

function myFunction() {

   alert("Controller: " + vid.controller);

} </script>

Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.

</body> </html>