Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect windows version?

Status
Not open for further replies.

Microbe

Programmer
Oct 16, 2000
607
AU
Hey there,

I am using highslide ( in a site and I have 100% confirmed that it has some sort of code that causes the combination of W2K and IE6 to reboot. Not just crash the browser, actually restart the machine.

This is not a good thing.

However Highslide is so cool I want to keep using it for the other 99.9% (?) of people so the trick would be to simply disable it for W2K IE6 combination.

I know how to detect a browser, I can detect the OS. But how can I detect Windows 2000 specifically? Can't find anything out there which leads me to think it might not be possible.

Thanks in advance for any suggestions


Steve
- I have fun with telemarketers
 
As far as I know (I don't have W2K to test), you should be able to examine the "window.navigator.userAgent" property:

Running XP, I see the string "Windows NT 5.1" contained. If running W2K, I think you'll see either "Windows NT 5.0" or "Windows NT 5.00" - but if you've got 2K you should be able to test the exact details.

Of course, why not email the author of the script and see if he can fix it? That way, your W2K users get to enjoy the benefits, too.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks Dan, I'll give that a try.

I agree about getting it to work properly and the author is going to set up a W2K IE6 system to do some testing.

Steve
- I have fun with telemarketers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top