HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <video style="width:100%;height:330px" controls> <source src="/reindeer.mp4" type="video/mp4"> <track src="/reindeer.vtt" kind="subtitles" srclang="en" label="English" oncuechange="myFunction()"> </video> <script> function myFunction(){ alert("Caption is changing"); } </script> <p><strong>Note</strong> : Please turn on video captions/subtitles.</p> </body> </html>
OUTPUT
×

Save as Private