Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()" type="button">Change Video</button><br> <video id="myVideo" controls autoplay> <source id="mp4_src" src="mov_bbb.mp4" type="video/mp4"> <source id="ogg_src" src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <script> function myFunction() { document.getElementById("mp4_src").src = "movie.mp4"; document.getElementById("ogg_src").src = "movie.ogg"; document.getElementById("myVideo").load(); } </script> <p>Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_av_met_load by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:09:48 GMT --> </html>
Result:
Try it Yourself - © w3schools.com