HTML | DOM onstalled Event
The onstalled event in HTML DOM occurs when media data get by the browser but the data is not available.
Syntax:
- In HTML:
<element onstalled="myScript">
- In JavaScript:
object.onstalled = function(){myScript}; - In JavaScript, using the addEventListener() method:
object.addEventListener("stalled", myScript);
Supported tag:
- <audio>
- <video>
Example: Using the addEventListener() method
<!DOCTYPE html> <html> <head> <title> HTML DOM onseeked Event </title> </head> <body> <center> <h1 style="color:green">GeeksforGeeks</h1> <h2>HTML DOM onseeked Event</h2> <video controls id="videoID"> <source src= type="video/mp4"> </video> </center> <script> document.getElementById( "videoID").addEventListener("stalled", GFGfun); function GFGfun() { alert( "Data of this media not available"); } </script> </body> </html> |
chevron_right
filter_none
Supported Browsers: The browsers supported by HTML DOM onstalled Event are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera
Recommended Posts:
- HTML | DOM oncopy Event
- HTML | DOM onsearch Event
- HTML | DOM onmessage Event
- HTML | DOM onresize Event
- HTML | DOM onclick Event
- HTML | DOM onpaste Event
- HTML | DOM ontimeupdate Event
- HTML | DOM onabort Event
- HTML | DOM onloadedmetadata Event
- HTML | DOM onsubmit Event
- HTML | DOM oncut Event
- HTML | DOM onseeked Event
- HTML | DOM onseeking Event
- HTML | DOM oncanplaythrough Event
- HTML | DOM fullscreenchange Event
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



