![]() |
Definition and UsageThe Tip: Related events that occurs when there is some kind of disturbance to the media loading process, are:
Applies toThe
Browser SupportThe |
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<title>
HTML onstalled Attribute
</title>
</head>
<body>
<center>
<h1 style="color:green">Horje</h1>
<h2>HTML onstalled Attribute</h2>
<video controls id="videoID">
<source src="https://www.sample-videos.com/video321/mp4/240/big_buck_bunny_240p_20mb.mp4"
type="video/mp4">
</video>
</center>
<script>
document.getElementById(
"videoID").addEventListener("stalled", GFGfun);
function GFGfun() {
alert(
"Data of this media not available");
}
</script>
</body>
</html>
html onstalled attribute |
How to use HTML onstalled Attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |
Views: | 33 |
Reffered: https://www.geeksforgeeks.org/html-onstalled-attribute/