Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    New York, USA
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts

    detecting OS win2k

    Hi,
    I need to determine if a user is on windows 2000 Professional before writing to a page. In the userAgent string I see that my OS (win2k) shows up as

    windows NT 5.0

    So can I search the string for 'NT 5.0' and be assured that I'm always dealing with win2k? Or do some variations of 2k return a different string... or for that matter what do other windows verisons return... NT, ME, XP etc.

    If you want to help me out you can pop this into your location bar and share the results:
    javascript:alert(navigator.userAgent);

    Or if anyone has done this same thing before would be even better.

    Thanks a lot for any insight.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's a great sniffer over at www.docjs.com


  •  

    Posting Permissions

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