browser - Jquery setInterval stops in separate tab -
i need setinterval function work when browser tab current script not active. can see example here http://jsfiddle.net/4mwqv/.
var balance=100000000; setinterval(function(){balance=balance+1;$('#balance').text(balance)},1);
when current tab active script runs fine, when switch window, counting stops. how can make count work in separate tab?
Comments
Post a Comment