Quantcast
Channel: Detect 64-bit or 32-bit Windows from User Agent or Javascript? - Stack Overflow
Browsing all 13 articles
Browse latest View live

Answer by don for Detect 64-bit or 32-bit Windows from User Agent or Javascript?

I've found this old question and thought updating with a recent open source library I found: https://github.com/faisalman/ua-parser-js According to the docs, the method getCPU() returns { architecture:...

View Article



Answer by Sandro Rosa for Detect 64-bit or 32-bit Windows from User Agent or...

I resumed the results of the nice search above into these JS functions. Hope they can help everybody here to catch up a quick response to their needs (and, as well, to mine too !) function...

View Article

Answer by peterhurford for Detect 64-bit or 32-bit Windows from User Agent or...

For 64-bit Windows with 64-bit IE window.navigator.platform will be "Win64" and window.navigator.cpuClass will be "x64". For 64-bit Windows with 32-bit IE, window.navigator.platform will be "Win32" and...

View Article

Answer by Dan for Detect 64-bit or 32-bit Windows from User Agent or Javascript?

Both window.navigator.cpuClass and window.navigator.platform return the browser platform. Not the system platform. So if you are running a 32-bit browser on a 64-bit system then both varibales would...

View Article

Answer by Luc for Detect 64-bit or 32-bit Windows from User Agent or Javascript?

Analysing around 14000 unique user-agents (from here), I've come up with the following strings to look for: x86_64 x86-64 Win64 x64; (Mind the semicolon! Without it you will have false-positives.)...

View Article


Answer by saschabeaumont for Detect 64-bit or 32-bit Windows from User Agent...

Try this, looks for WOW64 (32-bit on 64-bit) or Win64 (native 64-bit) in the user-agent string. if (navigator.userAgent.indexOf("WOW64") != -1 || navigator.userAgent.indexOf("Win64") != -1 ){...

View Article

Answer by mgabor6 for Detect 64-bit or 32-bit Windows from User Agent or...

I've done some tests. Here are the results, hope it helps: 64 bit MacOS + 64 bit Safari or 32 bit Chrome: window.navigator.platform=MacIntel 32 bit windows + safari: window.navigator.platform=Win32 64...

View Article

Answer by GermanZ for Detect 64-bit or 32-bit Windows from User Agent or...

I used following code: var is32BitBrowser = true; if( window.navigator.cpuClass != null && window.navigator.cpuClass.toLowerCase() == "x64" ) is32BitBrowser = false; if(...

View Article


Answer by ashish for Detect 64-bit or 32-bit Windows from User Agent or...

64-bit IE on 64-bit Windows for any Internet Explorer browser if (navigator.userAgent.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Win64") != -1 &&...

View Article


Answer by Lee Atkinson for Detect 64-bit or 32-bit Windows from User Agent or...

The most reliable solution would be to create a 32bit loader application that detects the architecture and then downloads and installs the appropriate version of your application. I've checked the...

View Article

Answer by RC. for Detect 64-bit or 32-bit Windows from User Agent or Javascript?

You can check the window.navigator.platform and the window.navigator.cpuClass. I'm not sure your situation, but I would consider just doing what most other sites do and let the user choose which...

View Article

Answer by LiamB for Detect 64-bit or 32-bit Windows from User Agent or...

Not with 100% certainty as you say the browser could be a 32bit version while the OS a 64bit. To detect the browser, please try the following code: <script language=javascript> <!--...

View Article

Detect 64-bit or 32-bit Windows from User Agent or Javascript?

I want to offer the right version of a download. The versions I have are: 32-bit Windows 64-bit Windows Linux Detecting Linux using the User Agent field is easy; but is it possible to reliably figure...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images