Call a javascript function at distinct time intervals
- by Dkong
I've created a stock ticker function and need to call it every 2 minutes.
I've succeeded in doing this with the javascript setInterval function, but the problem is on the first call it waits 2 minutes before calling the function, whereas I want the first load to be called right away.
function CallFunction() {
setInterval("GetFeed()", 2000);
}