var music = new audio({ loop: true, volume: 1, src: ['music.mp3'] }) //or var music = new Audio('music.mp3'); music.loop = true; music.volume = 0.2;