code:ajax.open("GET", url, true); ajax.onreadystatechange = function(){ if (ajax.readyState == 4){ var ht = ajax.responseText; } }