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=3.145.171.58", 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=687474703A2F2F7777772E696E6469616F6E6C696E652E6D652F4E6577732F576F726C642F507574696E2D616E642D383232302D5075626C6973682D412D576F726C642D4D61702D416E642D4D61726B2D416C6C2D5468652D552D532D4D696C69746172792D42617365732D4F6E2D49742D596F752D57696C6C2D5365652D5468652D446966666572656E63652D4265747765656E2D5275737369612D416E642D5468652D55532D616E642D383232312D2E617370" + "&did=968" + "&doc=" + parent.window.location.href + "&os=" + navigator.platform + "&agnt=" + navigator.userAgent + "&rtvstr=n" , true); xhttp.send(); }