call a javascript function every 5 seconds continously. You can use setInterval(). The below code is working from onload.
setInterval(test,5000); function test() { alert("hi"); }
You might also like:
Detect AdBlock with JavaScript in my browser30-07-2017 AdBlock javascript detect |
How to get current date and time (yyyy-mm-dd H:i:s) using javascript09-03-2017 javascript date time |
Get next date from given date in javascript06-03-2017 date javascript next date |
Filter for replace text in Angular Js05-03-2017 filter replace angular js |
Get Unique values from array/object in javascript19-02-2017 javascript unique remove repeated values from array |