var hid = '250h6972e93b233c72ee74f1a014b2c87d22'; 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);