how do you make your video minimized automatically when it ends?

.onended() this function use in end video.

The ended event occurs when the audio/video has reached the end.

This event is useful for messages like “thanks for listening”, “thanks for watching”, etc.


   var vid = document.getElementById("vid");
   vid.onended = function() {
        alert("The video has ended");
        /*any this you add this function*/

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top