<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
video{
width:100%;
height:330px
}
</style>
</head>
<body>
<video id="myVid" onabort="myFunction()" controls>
<source src="/hawk.mp4" type="video/mp4">
</video>
<button onclick="myAbort()">Abort this Video</button>
<script>
function myFunction() {
alert("Video aborted");
}
function myAbort(){
document.getElementById("myVid").src = "";
}
</script> </body>
</html>