If you read wikipedia definition:
Step by Step Beginner’s Sample
Say you want to client-side print the user’s Country IP using some external JSONP free service.
You can test that solution from your browser right now:
1. Open your Browser
3. Open the console by pressing F12 or whatever key your browser use. You may need to select tab ‘Console’ (tested on Chrome and Internet Explorer 10)
4. Paste the below code (within the console)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
You should see an alert saying your current (ip based location) country name after half a second or so.