Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Get/Detect Browser Type and Version in Asp.net using jQuery Migrate Plugin

Jun 9, 2015
Introduction

Here I will explain how to
jQuery to get browser type and version or jQuery detect browser version and type in asp.net with example or jQuery find browser type / version with example. By using jQuery migrate plugin we can get browser type and veriosn with example.


By using jQuery migrate plugin we can find browser type and version for that we need to write the code like as shown below


<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript">
$(function () {
$.each($.browser, function (i, val) {
$("#lbltype").append( i + ' : ' + val + '<br/>');
});
})
</script>


$.browser” property will help us to get browser type and version. If you want to check it in complete example you need to write the code like as shown below


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title>jQuery Get/Detect Browser Type and Version in Asp.net</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr><td> You Are Using Browser:</td>
</tr>
</table>
<label id="lbltype" style=" font-size:xx-large; font-weight:bold" />
<script type="text/javascript">
$(function () {
$.each($.browser, function (i, val) {
$("#lbltype").append( i + ' : ' + val + '<br/>');
});
})
</script>
</form>
</body>
</html>

Demo

For demo check below version details



jQuery Get/Detect Browser Type and Version in Asp.net using jQuery Migrate Plugin

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

0 comments :

Give your Valuable Comments

Other Related Posts

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.