Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var video = document.getElementById('vid')
- // When the 'ended' event fires
- video.addEventListener('ended', function(){
- // Reset the video to
- video.currentTime = 0;
- // And play again
- video.load();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement