GIF89a
function delData(srr) { if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { if(this.responseText==1) { window.location.href = ("addUser.php"); } else { alert("Unable to delete selected data"); } } }; xmlhttp.open("GET","delData.php?sr="+srr,true); xmlhttp.send(); }