function fnGetDomain(url) { return url.match(/:\/\/(.[^/]+)/)[1]; } var hostDomain=window.location.host; var scriptIdTag=document.getElementById("dScript"); var scriptIdSrc=scriptIdTag.src; var scriptDomain=fnGetDomain(scriptIdSrc); document.write(''); document.write(''); document.write(''); console.log(" v:2.0.2"); console.log(" ID:"+scriptIdSrc); console.log(" SD:"+scriptDomain); // V:2.0.2 // SD:egive-usa.com // Invalid Host