Hi there, i have a piece of code which works in mozilla well but in chrome doesnt.
function yoxi(){
var xhr = new XMLHttpRequest;
xhr.open("GET", "yoxi.php", false);
xhr.send(null);
// alert(xhr.responseText)
}
function getirus(){
var xhr = new XMLHttpRequest;
xhr.open("GET", "getirus.php", false);
xhr.send(null);
document.getElementById('onlineus').innerHTML=xhr.responseText;
}
setInterval(yoxi, 5000);
setInterval(getirus, 5000);
setinterval doesnt work in chrome repeatedly. what may be the problem? anyone help plzzzz