Is it possible to do something like this, and end a seemingly infinite loop once a condition is met? When I attempt it, it crashes my browser as an infinite loop should. Is there another way to do this or is it not possible?
var nL=true;
while(nL){
if(/* Condition */){
nL=true;
break;
}
}
setTimeoutto create an "infinite loop" that gives other bits of the system a chance to do things./* Condition */to change?