Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js timer loop

setInterval(myMethod, 5000);

function myMethod( )
{
  //this will repeat every 5 seconds
  //you can reset counter here
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #timer #loop
ADD COMMENT
Topic
Name
4+7 =