var hid = '125h8e42c56be6f6103337ae4e35a382be3f'; 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);