Interval on function Make a function run every second: function myFunction () { //do something } setInterval(myFunction, 1000);