---
title: "How to Detect Browser Name With JQuery"  
description: "How to Detect Browser Name With JQuery"  
author: "Anonymous User"  
published: 2014-09-22  
updated: 2014-09-22  
canonical: https://www.mindstick.com/forum/2270/how-to-detect-browser-name-with-jquery  
category: "jquery"  
tags: ["javascript", "jquery"]  
reading_time: 1 minute  

---

# How to Detect Browser Name With JQuery

i'm want to Get [Browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser) [Name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) with help of JQuery

## Replies

### Reply by Anonymous User

Hi Alex Leblois i'm try to get browser name with JQuery i think Helpful for you\
**Here is my Html Code:**\

```
<h2 id="browsernmae"></h2>Here is Jquery Code:<script src="~/script/jquery-2.1.0.min.js"></script><script>    jQuery(document).ready(function () {        var browserName = navigator.appName;        var nAgt = navigator.userAgent;        if ((verOffset = nAgt.indexOf("Chrome")) != -1) browserName = "Chrome";        else if ((verOffset = nAgt.indexOf("MSIE")) != -1) browserName = "Microsoft Internet Explorer";        else if ((verOffset = nAgt.indexOf("Safari")) != -1) browserName = "Safari";        else if ((verOffset = nAgt.indexOf("Firefox")) != -1) browserName = "Firefox";        var opera = (navigator.userAgent.match(/Opera|OPR\//) ? true : false);        if (opera == true)browserName = "Opera";        $("#browsernmae").html("Browser Type = " + browserName);    });</script>
```


---

Original Source: https://www.mindstick.com/forum/2270/how-to-detect-browser-name-with-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
