setInterval(function() { if(document.getElementById('id').innerHTML !='No offers') { new Audio ('audio.mp3').play() } }, 1000);
Related questions
Find more questions by tags JavaScript