<?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>Browser &#8211; Sibeesh Passion</title>
	<atom:link href="https://sibeeshpassion.com/tag/browser/feed/" rel="self" type="application/rss+xml" />
	<link>https://sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 02 Jun 2021 15:17:02 +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>Browser &#8211; Sibeesh Passion</title>
	<link>https://sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Find Browser And Browser Version Using jQuery</title>
		<link>https://sibeeshpassion.com/find-browser-and-browser-version-using-jquery/</link>
					<comments>https://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://sibeeshpassion.com/find-browser-and-browser-version-using-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Determine Which Browser Your Application is Running In</title>
		<link>https://sibeeshpassion.com/determine-which-browser-your-application-is-running-in/</link>
					<comments>https://sibeeshpassion.com/determine-which-browser-your-application-is-running-in/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 17 Jun 2015 01:00:38 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JQuery]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=2201</guid>

					<description><![CDATA[Introduction Today we will learn how to determine in which browser your application is currently running. I hope you will like it. Background As you all know, nowadays it is important that our application must work in all the browsers. We cannot force our clients to work with only selected browsers. It is our duty to make our application work with all the browsers. Most of the applications may encounterr some issues with browser compatibility. I encountered some issues too. To make our application work with all the browsers, you must get the browser details at run time, only then [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Today we will learn how to determine in which browser your application is currently running. I hope you will like it.</p>
<p><strong>Background</strong></p>
<p>As you all know, nowadays it is important that our application must work in all the browsers. We cannot force our clients to work with only selected browsers. It is our duty to make our application work with all the browsers. Most of the applications may encounterr some issues with browser compatibility. I encountered some issues too. To make our application work with all the browsers, you must get the browser details at run time, only then we can write the relevant code depending on the browser. Here we will do that.</p>
<p><strong>Using the code</strong></p>
<p>Here I am using Visual Studio 2012. What I will do is to create a default page and when the page runs, we will fetch the browser details from the server.</p>
<p><strong>So let us start</strong></p>
<p>Here I will share two methods to do that.</p>
<p><em><strong>Method 1</strong></em></p>
<p>In this method, we will use a page with the following codes. This method does not need any server-side code.<br />
[html]<br />
&lt;%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“Default.aspx.cs” Inherits=“_Default” %&gt;<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html xmlns=“http://www.w3.org/1999/xhtml”&gt;<br />
&lt;head runat=“server”&gt;<br />
    &lt;title&gt;Check in which browser your are running your applciation – SibeesPassion&lt;/title&gt;<br />
    &lt;style&gt;<br />
        tr {<br />
            border: 1px solid #ccc;<br />
            padding: 5px;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    &lt;form id=“form1″ runat=“server”&gt;<br />
        &lt;div&gt;<br />
            &lt;%= Request.Browser.Browser %&gt;<br />
        &lt;/div&gt;<br />
    &lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>We are fetching a variable Request.Browse. The browser that is generated by ASP.Net at run time, which means, when we run our application the call reaches the server and the server will generate the variable that contains the details about the browser.</p>
<p>If you run the page in any browser you will get the output as follows.</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw1.PNG" alt="" /></p>
<p>Figure 1: Google Chrome</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw2.PNG" alt="" /></p>
<p>Figure 2: Internet Explorer</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw3.PNG" alt="" /></p>
<p>Figure 3: Firefox (Mozilla)</p>
<p>Now will go to our second method.</p>
<p><em><strong>Method 2</strong></em></p>
<p>In this method we are fetching the browser details by writing some server-side code (C# and VB.Net). For this, please see the following codes.</p>
<p><strong>C#</strong><br />
[csharp]</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.Configuration;<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        HttpBrowserCapabilities myBrowser = Request.Browser;<br />
        Response.Write(“&lt;p&gt;Browser Capabilities:&lt;/p&gt;”);<br />
        Response.Write(“Type = “ + myBrowser.Type + “&lt;br&gt;”);<br />
        Response.Write(“Name = “ + myBrowser.Browser + “&lt;br&gt;”);<br />
        Response.Write(“Version = “ + myBrowser.Version + “&lt;br&gt;”);<br />
        Response.Write(“Major Version = “ + myBrowser.MajorVersion + “&lt;br&gt;”);<br />
        Response.Write(“Minor Version = “ + myBrowser.MinorVersion + “&lt;br&gt;”);<br />
        Response.Write(“Platform = “ + myBrowser.Platform + “&lt;br&gt;”);<br />
        Response.Write(“Is Beta = “ + myBrowser.Beta + “&lt;br&gt;”);<br />
        Response.Write(“Is Crawler = “ + myBrowser.Crawler + “&lt;br&gt;”);<br />
        Response.Write(“Is AOL = “ + myBrowser.AOL + “&lt;br&gt;”);<br />
        Response.Write(“Is Win16 = “ + myBrowser.Win16 + “&lt;br&gt;”);<br />
        Response.Write(“Is Win32 = “ + myBrowser.Win32 + “&lt;br&gt;”);<br />
        Response.Write(“Supports Frames = “ + myBrowser.Frames + “&lt;br&gt;”);<br />
        Response.Write(“Supports Tables = “ + myBrowser.Tables + “&lt;br&gt;”);<br />
        Response.Write(“Supports Cookies = “ + myBrowser.Cookies + “&lt;br&gt;”);<br />
        Response.Write(“Supports VB Script = “ + myBrowser.VBScript + “&lt;br&gt;”);<br />
        Response.Write(“Supports JavaScript = “ + myBrowser.JavaScript + “&lt;br&gt;”);<br />
        Response.Write(“Supports Java Applets = “ + myBrowser.JavaApplets + “&lt;br&gt;”);<br />
        Response.Write(“Supports ActiveX Controls = “ + myBrowser.ActiveXControls + “&lt;br&gt;”);<br />
        Response.Write(“CDF = “ + myBrowser.CDF + “&lt;br&gt;”);<br />
    }<br />
}<br />
[/csharp]</p>
<p><strong>VB.Net</strong></p>
<p>[vb]<br />
Imports System.Collections.Generic<br />
Imports System.Linq<br />
Imports System.Web<br />
Imports System.Web.UI<br />
Imports System.Web.UI.WebControls<br />
Imports System.Web.Configuration<br />
Public Partial Class _Default<br />
    Inherits System.Web.UI.Page<br />
    Protected Sub Page_Load(sender As Object, e As EventArgs)<br />
        Dim myBrowser As HttpBrowserCapabilities = Request.Browser<br />
        Response.Write(“&lt;p&gt;Browser Capabilities:&lt;/p&gt;”)<br />
        Response.Write(“Type = “ + myBrowser.Type + “&lt;br&gt;”)<br />
        Response.Write(“Name = “ + myBrowser.Browser + “&lt;br&gt;”)<br />
        Response.Write(“Version = “ + myBrowser.Version + “&lt;br&gt;”)<br />
        Response.Write(“Major Version = “ + myBrowser.MajorVersion + “&lt;br&gt;”)<br />
        Response.Write(“Minor Version = “ + myBrowser.MinorVersion + “&lt;br&gt;”)<br />
        Response.Write(“Platform = “ + myBrowser.Platform + “&lt;br&gt;”)<br />
        Response.Write(“Is Beta = “ + myBrowser.Beta + “&lt;br&gt;”)<br />
        Response.Write(“Is Crawler = “ + myBrowser.Crawler + “&lt;br&gt;”)<br />
        Response.Write(“Is AOL = “ + myBrowser.AOL + “&lt;br&gt;”)<br />
        Response.Write(“Is Win16 = “ + myBrowser.Win16 + “&lt;br&gt;”)<br />
        Response.Write(“Is Win32 = “ + myBrowser.Win32 + “&lt;br&gt;”)<br />
        Response.Write(“Supports Frames = “ + myBrowser.Frames + “&lt;br&gt;”)<br />
        Response.Write(“Supports Tables = “ + myBrowser.Tables + “&lt;br&gt;”)<br />
        Response.Write(“Supports Cookies = “ + myBrowser.Cookies + “&lt;br&gt;”)<br />
        Response.Write(“Supports VB Script = “ + myBrowser.VBScript + “&lt;br&gt;”)<br />
        Response.Write(“Supports JavaScript = “ + myBrowser.JavaScript + “&lt;br&gt;”)<br />
        Response.Write(“Supports Java Applets = “ + myBrowser.JavaApplets + “&lt;br&gt;”)<br />
        Response.Write(“Supports ActiveX Controls = “ + myBrowser.ActiveXControls + “&lt;br&gt;”)<br />
        Response.Write(“CDF = “ + myBrowser.CDF + “&lt;br&gt;”)<br />
    End Sub<br />
End Class<br />
[/vb]</p>
<p>What we do on the preceding code is, we are creating an object for HttpBrowserCapabilities and fetching the details from that object. Very simple. Now if you run your page, you will get the output as in the following.</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw4.PNG" alt="" /></p>
<p>Figure 4: Chrome.</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw5.PNG" alt="" /></p>
<p>Figure 5: Internet Explorer</p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/find-out-in-which-browser-your-application-is-running/Images/chkbrw6.PNG" alt="" /></p>
<p>Figure 6: Firefox (Mozilla)</p>
<p><strong>Conclusion</strong></p>
<p>I hope you will like this article. Please share me your valuable thoughts and comments. Your feedback is always welcomed.</p>
<p>Thanks in advance. Happy coding!</p>
<p>Kindest Regards<br />
<a href="https://plus.google.com/+sibeeshkv" target="_blank" rel="noopener">Sibeesh Venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/determine-which-browser-your-application-is-running-in/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
