<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jQuery Browser &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/jquery-browser/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 21 Oct 2015 08:55:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>jQuery Browser &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Find Browser And Browser Version Using jQuery</title>
		<link>https://www.sibeeshpassion.com/find-browser-and-browser-version-using-jquery/</link>
					<comments>https://www.sibeeshpassion.com/find-browser-and-browser-version-using-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 21 Oct 2015 00:17:20 +0000</pubDate>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Find Browser And Browser Version Using jQuery]]></category>
		<category><![CDATA[jQuery Browser]]></category>
		<category><![CDATA[jquery functions]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10805</guid>

					<description><![CDATA[In this post we will see how we can find out the browser name and browser version by using jQuery. Here we will be using $.browser property og jQuery which returns the browser information. In this demo we will test this in most used browsers like Internet Explorer, Mozilla, Chrome, Opera. I hope you will like this. NB: Using $.browser is not recommended by jQuery itself, so that this feature has been moved to the jQuery.migrate plugin which is available to download if the user want. It is a vulnerable practice to use the same. Use it only if needed. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will see how we can find out the browser name and browser version by using jQuery. Here we will be using $.browser property og jQuery which returns the browser information. In this demo we will test this in most used browsers like Internet Explorer, Mozilla, Chrome, Opera. I hope you will like this.</p>
<blockquote><p>NB: Using $.browser is not recommended by jQuery itself, so that this feature has been moved to the jQuery.migrate plugin which is available to download if the user want. It is a vulnerable practice to use the same. Use it only if needed. It is always better to do not use browser specific codes. </p></blockquote>
<p><strong>Using the code</strong></p>
<p>First thing you need to do is create a page.</p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Find Browser In JQuery &#8211; Sibeesh Passion&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    Find Browser In JQuery &#8211; Sibeesh Passion<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>Then you need to include the script needed.</p>
<p>[js]<br />
&lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script src=&quot;http://code.jquery.com/jquery-migrate-1.2.1.js&quot;&gt;&lt;/script&gt;<br />
[/js]</p>
<p>As you have noticed I have included <em>http://code.jquery.com/jquery-migrate-1.2.1.js</em>. It is just because this feature is deprecated and moved to this js. </p>
<p>Now you need to write the scripts.</p>
<p>[js]<br />
&lt;script&gt;<br />
        $(document).ready(function () {<br />
            if ($.browser.webkit) {<br />
                alert(&quot;Hooray WebKit!&quot; +&quot; Version: &quot;+ $.browser.version);<br />
            } else if ($.browser.msie) {<br />
                alert(&quot;Hooray IE!&quot; + &quot; Version: &quot; + $.browser.version);<br />
            } else if ($.browser.mozilla) {<br />
                alert(&quot;Hooray mozilla!&quot; + &quot; Version: &quot; + $.browser.version);<br />
            }<br />
            $.each($.browser, function (i, val) {<br />
                $(&quot;&lt;div&gt;&quot; + i + &quot; : &lt;span&gt;&quot; + val + &quot;&lt;/span&gt;&quot;)<br />
                .appendTo(document.body);<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>We are appending the browser details to the DOM. So that it is always better to use some CSS to improve the readability.</p>
<p>[css]<br />
 &lt;style&gt;<br />
        div {<br />
            width: 500px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            color: #f90;<br />
            font-style: oblique;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
[/css]</p>
<p>Now please run your browser, you can see the following output. </p>
<div id="attachment_10806" style="width: 427px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-10806" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery.png" alt="Find Browser And Browser Version Using jQuery" width="417" height="243" class="size-full wp-image-10806" srcset="/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery.png 417w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery-300x175.png 300w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery-400x233.png 400w" sizes="(max-width: 417px) 100vw, 417px" /></a><p id="caption-attachment-10806" class="wp-caption-text">Find Browser And Browser Version Using jQuery</p></div>
<div id="attachment_10807" style="width: 624px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery1.png"><img decoding="async" aria-describedby="caption-attachment-10807" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery1.png" alt="Find Browser And Browser Version Using jQuery" width="614" height="238" class="size-full wp-image-10807" srcset="/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery1.png 614w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery1-300x116.png 300w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery1-400x155.png 400w" sizes="(max-width: 614px) 100vw, 614px" /></a><p id="caption-attachment-10807" class="wp-caption-text">Find Browser And Browser Version Using jQuery</p></div>
<div id="attachment_10808" style="width: 577px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery2.png"><img decoding="async" aria-describedby="caption-attachment-10808" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery2.png" alt="Find Browser And Browser Version Using jQuery" width="567" height="199" class="size-full wp-image-10808" srcset="/wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery2.png 567w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery2-300x105.png 300w, /wp-content/uploads/2015/10/Find_Browser_And_Browser_Version_Using_jQuery2-400x140.png 400w" sizes="(max-width: 567px) 100vw, 567px" /></a><p id="caption-attachment-10808" class="wp-caption-text">Find Browser And Browser Version Using jQuery</p></div>
<p><strong>Complete Code</strong></p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Find Browser In JQuery &#8211; Sibeesh Passion&lt;/title&gt;<br />
    &lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script src=&quot;http://code.jquery.com/jquery-migrate-1.2.1.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script&gt;<br />
        $(document).ready(function () {<br />
            if ($.browser.webkit) {<br />
                alert(&quot;Hooray WebKit!&quot; +&quot; Version: &quot;+ $.browser.version);<br />
            } else if ($.browser.msie) {<br />
                alert(&quot;Hooray IE!&quot; + &quot; Version: &quot; + $.browser.version);<br />
            } else if ($.browser.mozilla) {<br />
                alert(&quot;Hooray mozilla!&quot; + &quot; Version: &quot; + $.browser.version);<br />
            }<br />
            $.each($.browser, function (i, val) {<br />
                $(&quot;&lt;div&gt;&quot; + i + &quot; : &lt;span&gt;&quot; + val + &quot;&lt;/span&gt;&quot;)<br />
                .appendTo(document.body);<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
    &lt;style&gt;<br />
        div {<br />
            width: 500px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            color: #f90;<br />
            font-style: oblique;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    Find Browser In JQuery &#8211; Sibeesh Passion<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>[/html]</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Have you ever wanted to find out the browser details in client side? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/find-browser-and-browser-version-using-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
