Skip to content Skip to sidebar Skip to footer

Refresh, Find And Alert Using Javascript

I have this javascript code that is supposed to be refreshing a given web page after a specific amount of time and tries to find a certain word after each refresh. And when that wo

Solution 1:

Try doing this:

myAudio = new Audio('yoursound.mp3'); 
myAudio.addEventListener('ended', function() {
    this.currentTime = 0;
    this.play();
}, false);
myAudio.play();

Post a Comment for "Refresh, Find And Alert Using Javascript"