Is there some sort of window.onThis(); function that I can set so that my code runs in a loop in the background?
window.onload = function() {while(true) {console.log("Blah")}}
This makes the page unresponsive. What is the recommended method of doing this?
I feel something's going over my head. Perhaps I'm looking at it the wrong way.