I have written a JavaScript function that asynchronously calls a web service using XmlHttpRequest. I have been asked to make this function finish its work before the page is
It is possible in IE.Use the timeout property.
the code below worked for me
xmlhttp.open("method","url",false); xmlhttp.timeout="time in ms"; xmlhttp.ontimeout=function(){}; xmlhttp.send();