Detect IE browser | jQuery

In previous post we saw how to get IE browser in JavaScript
In this post we wiil see how to detect IE browser using jQuery. jQuery have Browser object like Navigator object in JavaScript. And using Browser object we can get Browser name, version..etc.
jQuery to get IE browser
<html xmlns="">
<head runat="server">
      <script type="text/javascript" src=""></script>
<script type="text/javascript">
    function getBrowser() {
        if ($.browser.msie) {
            alert('Detected IE browser');
    <form id="form1" runat="server">
    <input type="button" onclick="getBrowser();" value="Get Browser Name"/>

Output This will show alert message Detected IE browser.