GIF89a
function deleteVendor(id1,id2){ 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) { alert("Selected vendor has been removed"); window.location.href = ("add_vendor.php"); } else { alert("We are unable to remove vendor | Please contact to developers"); window.location.href = ("add_vendor.php"); } } }; xmlhttp.open("GET","deleteVendor.php?id="+id1+"&id2="+id2,true); xmlhttp.send(); }