<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
video{
width:100%;
height:330px
}
</style>
</head>
<body>
<p>'onsuspend' event triggers, when video is trying to load media data.</p>
<video onsuspend="myFunction()" controls>
<source src="/hawk.mp4" type="video/mp4">
</video>
<script>
function myFunction(){
alert("Media data loading has been suspended");
}
</script> </body>
</html>