I have the following scenario:
setTimeout("alert('this alert is timedout and should be the first');", 5000);
alert("this should be the second one");
I need the code after the setTimeout
to be executed after the code in the setTimeout is executed. Since the code that comes after the setTimeout
is not code of my own I can't put it in the function called in the setTimeout...
Is there any way around this?
See Question&Answers more detail:os