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:
Simple Array Sum | Javascript | hackerrank.com07-05-2020 hackerrank.com javascript arrays array sum |
File Upload Using Angular Js and Node Js28-05-2018 AngularJs Node js file upload multer module |
Use java script file client side and server side at a time in node js30-07-2017 node js include call javascript |
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 |