Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript after time call function

/*
You can use JavaScript Timing Events to call function after certain interval of time:

This shows the alert box every 3 seconds:
*/

setInterval(function() {alert("Hello")},3000);

/*
1. setInterval(): executes a function, over and over again, at specified time intervals
2. setTimeout() : executes a function, once, after waiting a specified number of milliseconds
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #time #call #function
ADD COMMENT
Topic
Name
2+7 =