code:var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState==4) { if(xmlhttp.status == 200){ //worked }else{ //error } } } xmlhttp.send("moo=xxx&cow=eksdf");