Does the browser keep track of active setInterval and setTimeout IDs? Or is this solely up to the developer to keep track of?
setInterval
setTimeout
If it does keep t
Look at the scripts below, the browser could remember the id of each setTimeout iteration
for (i = 1; i <= d; i++) { (function(j) { var delay = j/d; t[j] = setTimeout(function() { elem.style.top = j+"px"; },delay); })(i); }
You can access them by
for (i in t) { alert(t[i]); }