SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member tats's Avatar
    Join Date
    Aug 2006
    Location
    NCR
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to get IP,ISP,Browser using JS

    hi everyone,

    i would just like to ask a very newbie question in terms of JavaScript...
    how to get the IP Address,Browser,ISP,Operating System of the guest visiting my page. i would like to put that little code inside my page so that they may know their info... i found some in www.danasoft.com but its graphical , i want only plain text file to be displayed...

    thanks for your attention..

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2005
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's an example of getting browser info: http://www.w3schools.com/js/tryit.as..._dom_navigator

    To get the the IP, you could use PHP, however, you can also get all that info using PHP, that's a better way than JS since it might not work if the user has JS turned off.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •