function carregarPrimary(a,b) {
if(navigator.onLine){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("idPrimary").innerHTML = this.responseText;
}
};
xmlhttp.open("GET", "https://artincode.pt/index.php?nome="+a+"&apelido="+b, true);
xmlhttp.send();
} else {
document.getElementById("idInternet").style.display='block';
}
}
Sem comentários:
Enviar um comentário