<script type=
"text/javascript"
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"
></script>
<script type=
"text/javascript"
>
$(
function
() {
var
userAgent = window.navigator.userAgent.toLowerCase();
$.browser.msie10 = $.browser.msie && /msie 10\.0/i.test(userAgent);
$.browser.msie9 = $.browser.msie && /msie 9\.0/i.test(userAgent);
$.browser.msie8 = $.browser.msie && /msie 8\.0/i.test(userAgent);
$.browser.msie7 = $.browser.msie && /msie 7\.0/i.test(userAgent);
$.browser.msie6 = !$.browser.msie8 && !$.browser.msie7 &&
$.browser.msie && /msie 6\.0/i.test(userAgent);
$(
".info"
).html(
"<h3>userAgent:</h3>"
+ userAgent +
"<br />"
+
"<h3>Is IE 10?</h3>"
+ $.browser.msie10 +
"<h3>Is IE 9?</h3>"
+ $.browser.msie9 +
"<h3>Is IE 8?</h3>"
+ $.browser.msie8 +
"<h3>Is IE 7?</h3>"
+ $.browser.msie7 +
"<h3>Is IE 6?</h3>"
+ $.browser.msie6
);
});
</script>
<body>
<div
class
=
"info"
></div>
</body>