1 var chkResult = Validation();
2 alert("wait ten seconds, then press ok");
3
4 document.getElementById('abc').innerHTML = chkResult;
The preceeding code delegates the sleep task to a parallel processor. This is a little messy because you have to use a DSL for this style of threading.