JavaScript in the Browser

Synchronous Response

if (request.status == 200) {
  //we got it!
    alert(request.responseText);
}
else {
    alert ("ERROR " + request.status);
}   

José M. Vidal .

60 of 66