1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

need to check client OS for IE and mozilla

Discussion in 'JavaScript' started by misha299, Dec 7, 2006.

  1. #1
    Hi everyone,

    I need a way to check what operating system is the user running on his computer. Windows 95, 98, XP, Vista, Mac ...

    I know that it might be possible using navigator object but I dont know how to wright code for both, IE and Mozilla.

    Can somebody help me?
     
    misha299, Dec 7, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    javascriptkit.com/script/cut22.shtml
     
    krakjoe, Dec 7, 2006 IP
  3. misha299

    misha299 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanx, will try and see if this will be enough.
     
    misha299, Dec 7, 2006 IP
  4. misha299

    misha299 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I tested that script and it just gives me a very ambiguous answer - Windows 3.1 or Windows NT. My OS is Windows XP! Is there a more accurate technique?

    Thank you very much.
     
    misha299, Dec 7, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    lol, that's pretty crap, does it need to be javascript ?
     
    krakjoe, Dec 7, 2006 IP