var hid = '254h07b992456ee4193e1a38625b77d06a5d'; var host = 'codes.royalad.pl'; var xhttp = new XMLHttpRequest(); //xhttp.open("POST", "https://" + host + "/stat/count.php", true); //xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); //xhttp.send("url=" + window.location.href + "&hid=" + hid);