Posts

Showing posts from December, 2014

Using Java Script detect if OS is 64 bit version or 32 bit.

Use following html code to show OS version: <html> <script> function onload() { if (navigator.userAgent.indexOf("WOW64") != -1 || navigator.userAgent.indexOf("Win64") != -1 ) {    alert("64 bit"); } else {    alert("32 bit"); } } </script> <body> <body onload="onload()" scrolling="no"> </body> </html> Ref:  UserAgent  (http://msdn.microsoft.com/en-us/library/ms537503%28v=vs.85%29.aspx)