#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    6
    Rep Power
    0

    HTTP_HOST - how to get host name in JavaScript?


    Hi all

    do you know how to get hostname where the page with JS is running?

    what variable or function is it?

    TIA
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    37
    window.location.hostname
    Michael
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    6
    Rep Power
    0
    is that simple???

    I could have thought myself.. it's obvious, damn it!
    ...sorry I'm lame....


    but thx a lot :>
  6. #4
  7. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    37
    In this case it is, but don't worry about it -- I realize it's not always this simple.
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo