It is very easy to detect the OS using jquery. Below are jqury function that may help you.
$(‘#osInfo’).html(“Your OS is: <b>” + $.client.os + “</b>”);
//To detect Mac OS:
if((navigator.platform.indexOf(“Mac”) != -1)) {
// code
}
$.browser.linux();
$.browser.mac();
$.browser.win();
$(‘#osInfo’).html(“Your OS is: <b>” + $.client.os + “</b>”);
//To detect Mac OS:
if((navigator.platform.indexOf(“Mac”) != -1)) {
// code
}
$.browser.linux();
$.browser.mac();
$.browser.win();
No comments:
Post a Comment