I have a javascript function that gets a JSON object from a URL and I want to refresh the JSON object every hour with up to date data.
I am assuming the way to do this is to recall the javascript function that gets the JSON object from a URL every hour.
However I do not know how to set a function to automatically rerun every hour, could someone explain how this is done?
Thank you
setInterval
, this requires your page to be open and stay opened all the time though.. – BeNdErR Oct 2 '14 at 11:45