# HTML DOM Audio loop Property
[ Audio Object](#)
## Example
Set the audio to loop playback:
document.getElementById("myAudio").loop = true;
[Try it Β»](#)
* * *
## Definition and Usage
The loop property sets or returns whether an audio should start over again when it reaches the end.
This property reflects the `
` loop attribute.
When this property is used, the audio continues to play after it ends.
**Note:** The `` element is new in HTML5.
* * *
## Browser Support

The loop property is supported in all major browsers.
**Note:** Internet Explorer 8 and earlier IE versions do not support this property.
* * *
## Syntax
Return the loop property:
_audioObject_.loop
Set the loop property:
_audioObject_.loop=true|false
## Property Values
| Value | Description |
| --- | --- |
| true|false | Specifies whether the audio should play again when it ends. * true - Specifies that the audio should play again when it ends. * false - Default. Specifies that the audio should not play again when it ends. |
## Technical Details
| Return Value: | A Boolean. Returns true if the audio loops, otherwise false. |
| --- |
| Default Value: | false |
* * *
## More Examples
## Example
Check if the audio will play again after it ends:
var x = document.getElementById("myAudio").loop;
The output of _x_ will be:
true
[Try it Β»](#)
* * *
## Related Pages
HTML Reference: [HTML `` loop attribute](#)
* * Audio Object](#)