loop

Gets or sets a flag to specify whether playback should restart after it completes.

MDN Reference