Skip to content

Instantly share code, notes, and snippets.

@zaach
Created September 22, 2008 21:18
Show Gist options
  • Save zaach/12163 to your computer and use it in GitHub Desktop.
Save zaach/12163 to your computer and use it in GitHub Desktop.
<script>
// callback function
function getip(json){
alert(json.ip) // alerts the ip address
}
</script>
<script type="text/javascript" src="http://jsonip.appspot.com/?callback=getip"> </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment