call function self javascript with time interval code example
Example: javascript setinterval
setInterval(function() {
//Your code
}, 1000); //Every 1000ms = 1sec
setInterval(function() {
//Your code
}, 1000); //Every 1000ms = 1sec