Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

When you will implement the HTML5 video loop attribute?

  • 3 replies
  • 472 have this problem
  • 38 views
  • Last reply by rthawkcom

more options

I know there is an add-on "Media Loop" for Firefox that implements the loop attribute for HTML5 videos/audios, but I don't want to force every visitor of my site to install it.

I know there is an add-on "Media Loop" for Firefox that implements the loop attribute for HTML5 videos/audios, but I don't want to force every visitor of my site to install it.

All Replies (3)

more options

A quick Jquery solution

  • $("#yourID").bind('ended', function(){
  • this.play();
  • });

Modified by TimVs.be

more options

or just add to the video tag: onended="this.play()" No need for Jquery!

more options

Just how do you add it to the video tag!? Next time, post a working example.

document.getElementById('video').addEventListener("ended", function(){this.play();});