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

detect 64-bit explorer and defer flash plug-in load

I have a web page that uses the flash player.  When a client accesses the page using the 64-bit version of windows explorer, the browser attempts to load the flash plug-in.  This becomes a useless exercise for the browser user, because the plug-in doesn't work with 64-bit browser.  

My question is - is there a way for my web page code to detect that the browser software being used in explorer 64-bit and notify the user that the appopriate action is to access the page using a 32-bit browser?  I am trying to avoid the scenario where the user loads the flash player only to get the same result when they access the page again.  

Any assistance appreciated - thanks
  • 2
1 Solution
You can use 'window.navigator.cpuClass' to tell whether you are on 64bit version or 32bit version...  But that won't do much good when it comes to detecting the version of Internet Explorer cuz you can run 32bit and 64bit IE at the same time on 64bit version of Vista...  

Wonder what would be a good measurement on this though...

Ah...  Check the user agent...

Detecting 64-bit Internet Explorer

As machines with more than 4 gigabytes of RAM become more common, more and more users are running 64-bit versions of Windows. For compatibility with 3rd party add-ons, the 32-bit edition of Internet Explorer remains the default on 64-bit systems. However, in some cases it can be useful for websites to recognize when users are visiting using 64-bit systems—for instance, a site may want to know whether to offer a 64-bit executable download.

Tokens in the User-Agent string will enable you to determine whether or not the user is running a 64-bit version of Windows, and whether they are running the 64-bit edition of Internet Explorer.

64-bit IE on 64-bit Windows:

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)

32-bit IE on 64-bit Windows:

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0)

Incidentally, WOW64 stands for “Windows on Windows 64-bit.”

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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