GIF89a
function removeColorVariant(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) { alert("Selected color variant has been removed"); window.location.href = ("new_color.php"); } else if(this.responseText==0) { alert("Dear user, we are unable to remove selected color variant, Please contact to developers"); } } }; xmlhttp.open("GET","removeColorVariant.php?srr="+srr,true); xmlhttp.send(); }