Alternative to "window.setInterval()"?

Apparently, the Timeout is running only when I’m on the page, is there a way to make it run automaticaly even if no one is on the page ?