Answers for "execute a function after a few seconds javascript"

3

javascript run something after x seconds

setTimeout(function(){
  location.reload();
}, 3000); //run this after 3 seconds
Posted by: Guest on August-07-2020
0

javascript execute after 1 second

function closeAnimation() {
    setInterval(function(){hide()}, 400);
    clearInterval(stopAnimation);
}

var stopAnimation = setInterval({hide()}, 400);
Posted by: Guest on December-30-2021

Code answers related to "execute a function after a few seconds javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language