CSS Portal
Run
Search
« Back to
HTML onwaiting Event Attribute
<!DOCTYPE html> <html> <head> <title>onwaiting Event attribute</title> </head> <body> <center> <h2>onwaiting Event Attribute</h2> <video controls id="videoID"> <source src="sample.mp4" type="video/mp4"> </video> </center> <script> document.getElementById("videoID").addEventListener("waiting", testFunction); function testFunction() { alert("Buffering"); } </script> </body> </html>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee