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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -