473,378 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Is there a built-in function to find out about the client OS?

Is there any in built function in javascript to know about the client OS information like what OS is installed, what service pack etc..

Thanks in advance.
Aug 29 '07 #1
6 1479
acoder
16,027 Expert Mod 8TB
Changed the thread title to better describe the problem. Please use a good thread title. Thanks!
Aug 29 '07 #2
epots9
1,351 Expert 1GB
Is there any in built function in javascript to know about the client OS information like what OS is installed, what service pack etc..

Thanks in advance.
give this a try:
Expand|Select|Wrap|Line Numbers
  1. alert(navigator.appVersion);
  2.  
good luck
Aug 29 '07 #3
mrhoo
428 256MB
For even more information you can try this:

Expand|Select|Wrap|Line Numbers
  1. var N= navigator, str= '';
  2. for(var p in N){
  3.     if(typeof N[p]=='string') str+= '\n\n'+p+'= '+N[p];
  4. }
  5.  
  6. alert(str);
Aug 30 '07 #4
dmjpro
2,476 2GB
Is there any in built function in javascript to know about the client OS information like what OS is installed, what service pack etc..

Thanks in advance.

Welcome to TSDN.
One thing let me clear why you suddenly trying to do System Program with JavaScript?
Anyway, I think it is not possible to get the OS related Informations using Standard JavaScript.
And the JavaScript is not for that.And what others suggested this will not help you.
Look, navigator object only holds the Informations related to Browser you are using.
But OS related Informations Quite Absurd.

Kind regards,
Dmjpro.
Aug 30 '07 #5
gits
5,390 Expert Mod 4TB
hi ...

give:

Expand|Select|Wrap|Line Numbers
  1. navigator.userAgent
a try ... it returns something like the following:

Expand|Select|Wrap|Line Numbers
  1. "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
so you may retrieve the OS-info from it with a regEx or indexof or whatever you prefer ...

kind regards
Aug 30 '07 #6
acoder
16,027 Expert Mod 8TB
And the JavaScript is not for that.And what others suggested this will not help you.
Look, navigator object only holds the Informations related to Browser you are using.
But OS related Informations Quite Absurd.
Not quite so absurd. Take a look at this example.
Aug 30 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: JimmyT | last post by:
I just configured and installed 2.3.4 and noticed there is no datetime module. I noticed there is a datetimemodule.c file that did not get built (ie no object file). Is there something I need to...
0
by: Andrew Crook | last post by:
does MYSQL have a quota built into it! I need it limit the size of each database AndiC
1
by: Mark | last post by:
Is there a way to execute a statement that is built dynamically by a .NET application. For example I have a loop that is reading values from a database and I want to do something like the...
4
by: Yasutaka Ito | last post by:
Hi, Is there a way to determine which version of .NET Framework any given assembly is built with? thanks! -Yasutaka
1
by: William | last post by:
Looking for a pre built dotnet corporate or small business website template.
1
by: William | last post by:
Looking for a pre built dot net website for consulting business. I am trying to put up a quick business web for a dot net frame work. I have a provider already. I am trying to save time. Any...
1
by: Daniel | last post by:
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built?
0
by: anthony Lichnewsky | last post by:
Hi, I have here a huge bunch of cygwin-built dlls using heavily posix api calls, and I wanted to know how to link them to some VC .NET library wrapper (using microsoft C runtime libraries this...
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
3
by: drewj840 | last post by:
I built a Windows service that sweeps a set of folders every 60 seconds and puts the files into a SQL Server database. I am creating a second service that will delete this set of folders and recreate...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.