Still pretty new to Javascript, so sorry if this is overly basic.
I have found this script that, when run inline, returns your IP.
<script type="text/javascript" src="http://l2.io/ip.js"></script>
http://l2.io/ip.js Has nothing more than a line of code that says
document.write('123.123.123.123');
(But obviously with the user's IP address)
I want to use this IP address as a return string for a function defined externally (but still on my domain).
I.e.
function getIP() {
return (THAT SCRIPT'S OUTPUT);
}
Herein lies the issue; I can't figure out how to do this.