| Below is the code to get the browser name here i have used if else to find the browser
$(document).ready(function() {
if ($.browser.mozilla && $.browser.version >= "2.0" ){
alert('Mozilla version is above 1.9');
}
if( $.browser.safari ){
alert('Browser is of Safari');
}
if( $.browser.opera){
alert('Browser is ofOpera');
}
if ($.browser.msie && $.browser.version <= 6 ){
alert('Version is IE 6 or below version');
}
if ($.browser.msie && $.browser.version > 6){
alert('Vsersion of IE is above 6');
}
}); | | |