I need my setInterval function to work even when the browser tab with current script is not active. You can see my example here http://jsfiddle.net/4MWqV/.
var balance=100000000;
setInterval(function(){balance=balance+1;$('#balance').text(balance)},1);
When current tab is active the script runs fine, but when I switch to another window, the counting stops. How can I make this count work even in separate tab?