GIF89a
// JavaScript Document function deleteVideo(videoID) { 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("Category has been removed | To see changes reflect the pages"); window.location.href = ("adminUsers.php"); } else { alert("Network issue ! Unable to send your query"); } } }; xmlhttp.open("GET","deleteCat.php?sr="+videoID,true); xmlhttp.send(); }