I am trying to repeat setTimeout every 10 seconds. I know that setTimeout by default only waits and then performs an action one time. How can I rep
setTimeout
according to me setInterval() is the best way in your case. here is some code :
setInterval(function() { //your code }, 10000); // you can change your delay by changing this value "10000".