html видео в конце

<!-- Answer to: "video tag html" -->

<video width="320" height="240" controls onended="alert('the vedio has ended')">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

<!-- The <video> tag is used to play videos... obviously -->
Yasin