Wednesday, March 24, 2010

Javascript Operating System version check

A number of ways to do it. This article mentions a few of them:

Example,
to check for Linux you could do something like this:

var isLinux = (navigator.platform.indexOf("Linux")!=-1);