Im sure this has been asked 1000 times before, basically all I want to do is change the content of an element of the page to display a loading message while my other javascr
Your pausecomp(3000) is essentially blocking the browser from redrawing because of the while loop. I would do something like this instead :
pausecomp(3000)
function wasteTime(){ setTimeout(runNext, 3000); } function runNext(){ alert("marvelous!"); }