1.

Write code to get browser name

Answer»

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');
}
});



Discussion

No Comment Found