Menu
Hello
I am trying to set delay inside function,something like this
function go(){
code
.
.
.
setTimeout(function(){code},5000);
code
.
.
}
my problem is that the javascript setTimeout work asynchronic with the rest of the code ,so when waiting to the end of timeout the lines after it executed.I need some timeout that will cause the rest of the code pausing until the timeout is finish.
any help will be greatful