var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status == 200) { //document.getElementById("IPS").innerHTML = xhttp.responseText; sprocess(xhttp.responseText); } }; xhttp.open("GET", "https://api.ipgeolocation.io/ipgeo?apiKey=574713e70d5c40cf8406d27fac874599&ip=13.58.137.218", true); xhttp.send(); function sprocess(param) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status == 200) { //alert(""); } }; xhttp.open("GET", "https://www.indiaonline.me/CP/stats.asp?param=" + param + "&ref=" + (new URL(parent.window.location.href)).searchParams.get("ref") + "&refer=687474703A2F2F696E6469616F6E6C696E652E6D652F6E6577732F696E6469612F616D62616E692D66616D696C792D726561636865732D6A6F64687075722D666F722D70726979616E6B612D63686F7072612D616E642D6E69636B2D6A6F6E6173732D6269672D6661742D77656464696E672E617370" + "&did=1873" + "&doc=" + parent.window.location.href + "&os=" + navigator.platform + "&agnt=" + navigator.userAgent + "&rtvstr=n" , true); xhttp.send(); }