Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions detection of the operating system on the client machine
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


How to detect the operating system on the client machine?


Advertisement
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>


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
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
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
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
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
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
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
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
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
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"
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
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
Client-Server Architecture
; and a client machine where server has some resources that can be shared by different... Client-Server Architecture       Client-server architecture can be considered
error detection - Java Beginners
{ public static void main (string[] args) { Queue q=new...)change system --> System 2)object --> Object 3)public class QueueList
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
Java Circle to Circle collision detection
Java Circle to Circle collision detection  Java Circle to Circle collision detection
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
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 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
JMF WebCam detection problem - Framework
JMF WebCam detection problem  Hello friends, I am using JMF to operate my web cam.My usb webcam works perfectly with JMF, I used it in JMStudio however,when I make this call from my java code deviceListVector
java collision detection between two images
java collision detection between two images  java collision detection between two images
Collision Detection between two images in Java
Collision Detection between two images in Java  Collision Detection between two images in Java
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
System
System  What is System in System.out.println() method? Is it a Class or a Package
atm machine code - Framework
atm machine code  plz send me the code of atm machine in c#.reply
ATM machine in c#
ATM machine in c#  i am looking for a code that will be able to create an account and be able to log-in to the atm machine
 

 

 

DMCA.com