Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q899 How can I find out the Operating System of the client?

irt.org | Knowledge Base | JavaScript | Misc | Q899 [ previous next ]

Q899 How can I find out the Operating System of the client?

Its within the navigator objects userAgent property:

<script language="JavaScript"><!--
alert(navigator.userAgent);
//--></script>

To get it you'll have to parse the field for certain values.

The "Ultimate JavaScript Client Sniffer" at http://developer.netscape.com/docs/examples/javascript/browser_type.html will show you how to detect for all platforms.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.