detection of the operating system on the client machine

Ads

 
 

Share on Google+Share on Google+

samar
detection of the operating system on the client machine
1 Answer(s)      6 years and 11 months ago
Posted in : JavaScript Questions

How to detect the operating system on the client machine?

Ads
View Answers

November 9, 2010 at 12:25 PM


In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.

<script language="javascript" type="text/javascript">
 var OSName="Unknown OS";
 if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
 if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
 if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
 if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
 document.write('Your OS: '+OSName);
 </script>

Ads









Related Tutorials/Questions & Answers:
detection of the operating system on the client machine
detection of the operating system on the client machine  How to detect the operating system on the client machine
How to Communicate with the operating system embedded on processor running on hardware machine in java
How to Communicate with the operating system embedded on processor running on hardware machine in java  hello Sir, i have a operating system embedded on processor running on hardware machine .Now as per my need i
Advertisements
operating system
operating system  write a programe in java that print system information like which process are in running state and those process used which resourses
Where i can use UNIX Operating System?
Where i can use UNIX Operating System?  Where i can use UNIX Operating System
Operating System based Web Hosting
Operating System based Web Hosting On the basis of operating system, Web... refers to the web hosting service on Windows operating system. Basically most... this service. B. Linux Web Hosting Linux operating system based hosting service
Operating Systems
on various Operating Systems. OS is also known as Operating System, which... with the Applications, Application interacts with the Operating system and finally Operating... operating system these days. Here are the details of different operating systems
Windows 8 Operating System
handling of the Windows operating system. Launched by the Microsoft it is expected... the launching of Window 8 is that making easy operating system's especially... Business? How To Install Windows 8 Windows 8, the New Operating System from
Java example program to get the operating system's version
Java example program to get the operating system's version... check your current system's operating system version by the java code also... simple to know your operating system's version in java. This program displays
Java example program to get the operating system name of the system
Java example program to get the operating system name of the system... System name Many times we need to know the current operating system name on which we... the information about the current operating system name. We can get the current
Operating System Information
Operating System Information     ... information about our operation system. In this example we are getting the OS name... os.orch.  The System class contains several useful class fields
Java example program to get Operating System type or architecture
Java example program to get Operating System type or architecture... the operating system type. We can get the operating system architecture or system type... the current running operating system's type. The property "os.arch"
Save file on Client Machine - Development process
://boserver:9090/AI where boserver is the name of server machine, now when a client... to save the file created by my application on the client machine how can i do... the code such that the D: of client machine is accessed and file is saved
Windows 8, the New Operating System from Microsoft
the new multitouch technology with its predominance in operating system for PCs. Yes, the wait for the Windows 8, the new operating system from Microsoft... of simplicity in computing. Windows 8, the new operating system from Microsoft is all
Version of geronimo>client-system dependency
List of Version of geronimo>client-system dependency
File download from server to client machine - JSP-Servlet
File download from server to client machine  hi, I want to save a pdf file to my client machine from a button provoded in a jsp page.The file... location to client machine by save dialog box. Please help me to find a solution
How to print list of files in client system
How to print list of files in client system  have some list of files in server.i just want to print that files in client machine with out opening... need to come from client system. but i done this functionality in java
how retrive data from google analystics dashbord on the client machine
how retrive data from google analystics dashbord on the client machine   sir i am digvijay subj: retrive data from google analystics dashbord respected sir, According above subject i request you , i want retrive data from
Version of jboss>jboss-system-client dependency
List of Version of jboss>jboss-system-client dependency
Maven Dependency client-system >> 1.0
You should include the dependency code given in this page to add Maven Dependency of geronimo >> client-system version1.0 in your project
Maven Dependency client-system >> 1.1
You should include the dependency code given in this page to add Maven Dependency of geronimo >> client-system version1.1 in your project
Maven Dependency client-system >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of geronimo >> client-system version1.1.1 in your project
Maven Dependency jboss-system-client >> 3.2.3
You should include the dependency code given in this page to add Maven Dependency of jboss >> jboss-system-client version3.2.3 in your project
Servers and Operating Systems
Servers and Operating Systems  Could we run java based web servers/application servers in windows xp operating system in production mode for small scale web applications
Java Virtual Machine
of machine as the machine language vary from system to system. So most complier... independent from the operating system and CPU architecture. JVM is a part of Java Run Time Environment that is required by every operating system. JRE consists
System
System  What is System in System.out.println() method? Is it a Class or a Package
face detection and face recognition
face detection and face recognition   hi,i will create a project detection and recognition of face in java , i create the face detection using opne... will send the part of face detection if you want help me please
washing machine
washing machine   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes   public class
Java Virtual Machine
Platform and runs the Java program on an Operating System. The JVM is OS...Java Virtual Machine The Java Virtual Machine is a software package that comes with the JRE or JDK. It is a virtual machine which is responsible for running
Java Virtual Machine Technology
Java Virtual Machine Technology Java development kit termed as  JDK have more than one implementation of the JVM. Java HotSpot Client VM also termed as client VM is specifically designed for the client applications
Version of com.51degrees>device-detection dependency
List of Version of com.51degrees>device-detection dependency
php browser detection script - PHP
php browser detection script   I need a browser detection script in PHP. I am creating my application compatible to firefor, mozila and IE too