[Solved] execute function right after xmlhttp.open and xmlhttp.send finished [duplicate]
[ad_1] You should call it like this: xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById(“txtHint”).innerHTML = this.responseText; get_fb();// THIS } }; 2 [ad_2] solved execute function right after xmlhttp.open and xmlhttp.send finished [duplicate]