0 Flares Twitter 0 Facebook 0 Filament.io 0 Flares ×

function createRequestObject() {
var obj;
var http;
var browser = navigator.appName;
if (browser == "Microsoft Internet Explorer") {
obj = new ActiveXObject("Microsoft.XMLHTTP");
} else {
obj = new XMLHttpRequest();
}
return obj;
}

function sendReq(req) {
http = createRequestObject();
http.open('get', req);
http.onreadystatechange = handleResponse;
http.send(null);
}

function handleResponse() {
if (http.readyState == 4) {
var response = http.responseText;
document.getElementById('myDiv').innerHTML=response;
}
}

sendReq('http://www.minixmodular.ia.uned.es/web_UNED_Abierta.html');

0 Flares Twitter 0 Facebook 0 Filament.io 0 Flares ×