var hid = '183h7187a6b270da1797f391a4b9bc5f4252'; 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);