HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> video{ width:100%; height:330px } </style> </head> <body> <p>Try to play and change the volume of this video</p> <video controls> <source src="/reindeer.mp4" type="video/mp4"> </video> <script> var x = document.getElementsByTagName("video")[0]; function myFunction() { alert("volume is changed"); } x.addEventListener("volumechange", myFunction); </script> </body> </html>
OUTPUT
×

Save as Private