Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1546
  • Last Modified:

User-agent and navigator.platform, WOW64 on notebook computer

Dear Experts,
I have used the following javascript code to get all browser and my computer infomation
I got the user-agent  and platform as follows
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Platform: Win32
After checking user-agent defination on this site of MS
http://msdn.microsoft.com/library/ms537503.aspx, where "WOW64" means
A 32-bit version of Internet Explorer is running on a 64-bit processor
and Windows NT6.1 means Window 7 operation system
so I go to check my notebook intel CPU, Intel(R) Pentium(R) CPU at
which said the instruction set is 64 bit and dual cores .

My question is
Question-1: My intel process is 64 bit CPU processor, right ? If right, "WOW64" is correct
on my notebook since I am using window7(Windows NT 6.1) which is window 32-bit described on javascript code of navigator.platform(Win).

Question-2: If what I said on question-1 all are correct, I should need to re-install
window 7 for 64 bit instead of  32 bit in order to speed up my window process, Right ?

Question-3: I don't know why my notebook will install 32-bit window 7 with intel 64 bit
processor ? Is it because the computer  vendor wants to save cost for selling ?

Please advise and hope you understand my question


javascript extract User-Agent and Platform
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName  = navigator.appName;
var fullVersion  = ''+parseFloat(navigator.appVersion); 
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset,verOffset,ix;

// In Opera, the true version is after "Opera" or after "Version"
if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
 browserName = "Opera";
 fullVersion = nAgt.substring(verOffset+6);
 if ((verOffset=nAgt.indexOf("Version"))!=-1) 
   fullVersion = nAgt.substring(verOffset+8);
// In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
 browserName = "Microsoft Internet Explorer";
 fullVersion = nAgt.substring(verOffset+5);
// In Chrome, the true version is after "Chrome" 
else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) {
 browserName = "Chrome";
 fullVersion = nAgt.substring(verOffset+7);
// In Safari, the true version is after "Safari" or after "Version" 
else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
 browserName = "Safari";
 fullVersion = nAgt.substring(verOffset+7);
 if ((verOffset=nAgt.indexOf("Version"))!=-1) 
   fullVersion = nAgt.substring(verOffset+8);
// In Firefox, the true version is after "Firefox" 
else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
 browserName = "Firefox";
 fullVersion = nAgt.substring(verOffset+8);
// In most other browsers, "name/version" is at the end of userAgent 
else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < 
          (verOffset=nAgt.lastIndexOf('/')) ) 
 browserName = nAgt.substring(nameOffset,verOffset);
 fullVersion = nAgt.substring(verOffset+1);
 if (browserName.toLowerCase()==browserName.toUpperCase()) {
  browserName = navigator.appName;
// trim the fullVersion string at semicolon/space if present
if ((ix=fullVersion.indexOf(";"))!=-1)
if ((ix=fullVersion.indexOf(" "))!=-1)

majorVersion = parseInt(''+fullVersion,10);
if (isNaN(majorVersion)) {
 fullVersion  = ''+parseFloat(navigator.appVersion); 
 majorVersion = parseInt(navigator.appVersion,10);

txt ="<p id='pd0'>Browser name  ="+browserName+'</p>';
txt+="<p id='pd1'>Full version  = "+fullVersion+'</p>'
txt+="<p id='pd2'>Major version = "+majorVersion+'</p>'
txt+="<p id='pd3'>navigator.appName = "+navigator.appName+'</p>'
txt+="<p id='pd4'>navigator.userAgent = "+navigator.userAgent+'</p>'

txt+= "<p id='pd5'>Browser CodeName: " + navigator.appCodeName + "</p>";
txt+= "<p id='pd6'>Browser Name: " + navigator.appName + "</p>";
txt+= "<p id='pd7'>Browser Version: " + navigator.appVersion + "</p>";
txt+= "<p id='pd8'>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
txt+= "<p id='pd9'>Platform: " + navigator.platform + "</p>";
txt+= "<p id='pd10'>User-agent header: " + navigator.userAgent + "</p>";

document.write("<div id='browser'>"+txt+"</div>");

Open in new window

  • 3
  • 3
3 Solutions
David S.Commented:
Only switching from 32-bit Windows to 64-bit Windows won't improve your speed and if you have less than 4GB of RAM installed, will reduce the amount of available RAM for applications to use. The main advantage of 64-bit Windows is being able to use more than the approximately 3.3GB of RAM that can be used with 32-bit operating systems. So unless you upgrade to 8GB of RAM (which is the maximum that that processor supports), there is no benefit to using 64-bit Windows.

64-bit web browsers have problems with 32-bit plugin compatibility, so most people using 64-bit operating systems still use 32-bit web browsers.

Also 64-bit Windows is backwards compatible with 32-bit applications, but not old 16-bit applications.
duncanb7Author Commented:
So my CPU is intel 64 bit, right ?
David S.Commented:
If the information that you posted is correct, yes. (I can't otherwise verify information that only you can provide.)
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

duncanb7Author Commented:
So is it strange, 64 bit CPU not using 64-bit window system/or other 64 bit system ?
probably, you mean 32 bit and 64 bit window system is not different on Intel 64 bit proccessor if the RAM is less than 4GB, right ?
David S.Commented:
Yes, it seems strange at first, but really it's very common.

64-bit desktop and laptop/notebook Intel and AMD processors are made to be backwards compatible.

There are other differences but the maximum amount of RAM supported by the operating system is the biggest one. 64-bit programs won't work on a 32-bit operating system. However, I'm not aware of any applications that only have 64-bit versions at this time. Also, at least with Windows Virtual PC, 32-bit Windows can not host virtual machines running 64-bit operating systems.
duncanb7Author Commented:
Thanks for your reply

Have a nice day


Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now