var hid = '493h6d88a3e2fe30adbfb8df50515e0516a7'; 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);