jQuery provides a property to detect the browser. It works well for IE,
mozilla, Safari and opera browser but it doesn't work for Google Chrome.
Below jQuery code gives you an idea about $.browser property.
$(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'); } });