Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js loop every x seconds

(function loop() {
  setTimeout(function () {
    // execute script
    loop()
  }, 9000); //9000 = 9000ms = 9s
}());
 
PREVIOUS NEXT
Tagged: #js #loop #seconds
ADD COMMENT
Topic
Name
9+8 =