Menu
So I am using the below code on my site, which should hopefully endlessly call a function while looping. The only problem is that is calls the click_sidebar(0), and then never calls it again, even though I know the loop is running….. I think I’m doing something wrong, but I can’t for the life of me figure out what.
Any help is greatly appreciated.
function raiseAlerts(nosofitems)
{
var i=0;
while (i<=nosofitems)
{
t=setTimeout(“click_sidebar(” + i + “)”,1000);
i=i+1;
}
//Add Code to Then Repeat Function All Over Again from 0 on Endless Loop
}
raiseAlerts(50);