<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#B').click(function () {
if ($.browser.msie) {
alert("IE");
$('#info').css("background-color","yellow");
}
else if ($.browser.webkit) {
alert("Webkit");
$('#info').css("backgroundColor", "pink");
}
else if ($.browser.mozilla) {
alert("Mozilla");
$('#info').css("backgroundColor", "orange");
}
else {
alert("unknown");
}
});
});
</script>