Get cpu Class : navigator « Javascript Objects « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Ext JS
10. Form Control
11. GUI Components
12. HTML
13. Javascript Collections
14. Javascript Objects
15. Javascript Properties
16. jQuery
17. Language Basics
18. Mochkit
19. Mootools
20. Node Operation
21. Object Oriented
22. Page Components
23. Rico
24. Scriptaculous
25. Security
26. SmartClient
27. Style Layout
28. Table
29. Utilities
30. Window Browser
31. YUI Library
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » Javascript Objects » navigator 
Get cpu Class
  
    
<html>
<head>
<script language="JavaScript">
function function1() {
    var m = navigator.cpuClass;
    if (m == "x86") {
        n = "Intel processor";
    else if (m == "68K") {
        n = "Motorola processor";
    else if (m == "Alpha") {
        n = "Digital processor"
    else if (m == "PPC") {
        n = "Motorola processor";
    else {
        n = "Unknown processor";
    }
    alert("The CPU of this machine is "+'"'+m+'"\n'+n)

</script>
<body>
<input type="button" value="Click here" onClick="function1();">
</body>
</html>

    
      
        
    
  
Related examples in the same category
1. Get browser Language
2. Language information from Navigator
3. Get application Name
4. Application Code Name
5. Is onLine
6. Get platform information
7. Is Java enabled
8. Get applicatoin Version
9. Get application Minor Version (navigator.appMinorVersion)
10. Get system Language from navigator (navigator.systemLanguage)
11. Is navigator taint Enabled (navigator.taintEnabled())
12. Get user Agent from navigator (navigator.userAgent)
13. Get user Language from navigator object (navigator.userLanguage)
14. Get application name from navigator (navigator.appName)
15. List all plugins
16. Get the browser version through navigator.appVersion
17. Use userAgent to get the browser type
18. Open Window based on user defined attributes
19. navigator.mimeTypes[1].description
20. navigator.mimeTypes[1].type
21. navigator.plugins[3].description
22. navigator.userAgent
23. navigator.appName
24. navigator.appCodeName
25. navigator.appVersion
26. navigator.appMinorVersion
27. navigator.platform
28. navigator.cookieEnabled
29. navigator.onLine
30. navigator.userLanguage
31. Display all values in navigator object
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.