Browser detection

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 1219
$(document).ready(function() {
if ($.browser.mozilla && $.browser.version >= "2.0" ){
alert('Mozilla above 1.9');
}

if( $.browser.safari ){
alert('Safari');
}

if( $.browser.opera){
alert('Opera');
}

if ($.browser.msie && $.browser.version <= 6 ){
alert('IE 6 or below version');
}

if ($.browser.msie && $.browser.version > 6){
alert('IE above 6');
}
});

Comments or Responses

Posted by: Vishalneeraj-24503 on: 7/31/2015 Level:Platinum | Status: [Member] [MVP] | Points: 10
Which jquery API will be used for above code?

Login to post response