Uhm .. un paio di errori: (in rosso )
HTHcodice:var ab=null; function CXHR(handler) { var xmlhttp=null; xhtmlhttp = new XMLHttpRequest(); xhtmlhttp.onreadystatechange = handler; return xmlhttp; } function HAN() { if (ab.readyState == 4 && ab.status == 200) { alert(ab.responseText); } } function ES() { ab = CXHR(HAN); ab.open("GET", "2.html"); ab.send(null); }
Zappa