Answers for "javascript 5 sec lateer"

0

javascript run something after x seconds

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

run js function after some sec

function myClick() {
  setTimeout(
    function() {
      document.getElementById('div1').style.display='none';
      document.getElementById('div2').style.display='none';
    }, 5000);
}
Posted by: Guest on August-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language