![]() |
Definition and UsageThe This event occurs when the loading of the media is suspended (prevented from continuing). This can happen when the download has completed, or because it has been paused for some reason. 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 onsuspend Attribute
</title>
</head>
<body>
<center>
<h1 style="color:green">Horje</h1>
<h2>HTML onsuspend Attribute</h2>
<audio controls id-"audioID">
<source src="https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_700KB.mp3" type="audio/mpeg">
</audio>
</center>
<script>
document.getElementById(
"audioID").addEventListener("suspend", GFGfun);
function GFGfun() {
alert(
"Media loading suspended");
}
</script>
</body>
</html>
html onsuspend attribute |
How to use HTML onsuspend Attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded: | 1 week ago |
Uploaded by: | Admin |
Views: | 22 |
Reffered: https://www.geeksforgeeks.org/html-onsuspend-attribute/