Ver originalajax.onreadystatechange=function() { if (ajax.readyState==4) { alert(ajax.responseText); } }