Many scripts initialize onload, or at document ready. Either way, that's over by the time this code:


if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var...