GIF89a
function delCart(user_id,prod_id) { 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.reload(); } else { window.location.reload(); } } }; xmlhttp.open("GET","delCart.php?user_id="+user_id+"&prod_id="+prod_id,true); xmlhttp.send(); }