• Displaying IP address with Javascript

    by  • June 10, 2008 • Code • 0 Comments

    Sometimes you need to check the users IP address and want to use Javascript to do so, bu Javascript has no way of getting that info. That’s why I’ve created a simple script that allows you to access the IP via JavaScript.
    Simply copy this to your HTML:

    <script src=”http://skidvis.com/myip.aspx”></script>

    That will return a simple JavaScript variable named myIP which contains the users IP address.

    Post comment as twitter logo facebook logo
    Sort: Newest | Oldest