browser-detection Questions

38

Solved

I want to bounce users of our web site to an error page if they're using a version of Internet Explorer prior to v9. It's just not worth our time and money to support IE pre-v9. Users of all other ...

5

Solved

I have been playing around with different scripts, I found one that works for everything but Chrome... this is the code I have been using to differ in .CSS files. I tried just makeing the Browser n...
Intima asked 20/4, 2012 at 17:56

32

Solved

I have 5 addons/extensions for Firefox, Chrome, Internet Explorer(IE), Opera, and Safari. How can I correctly recognize the user browser and redirect (once an install button has been clicked) to do...
Octameter asked 23/3, 2012 at 23:6

24

Solved

How to detect Safari browser using JavaScript? I have tried code below and it detects not only Safari but also Chrome browser. function IsSafari() { var is_safari = navigator.userAgent.toLowerCa...
Berriman asked 30/10, 2011 at 10:42

47

Solved

I'm looking for a function that returns a boolean value if the user is using a mobile browser or not. I know that I can use navigator.userAgent and write that function by using regex, but user-agen...

12

Solved

I'm developping a JS-app that needs to work both on the client side and the server side (in Javascript on a browser and in Node.js), and I would like to be able to reuse the parts of the code that ...
Parris asked 10/7, 2013 at 16:15

14

Solved

Using conditional comments it is easy to target Internet Explorer with browser-specific CSS rules: <!--[if IE 6]> ...include IE6-specific stylesheet here... <![endif]--> Sometimes it...
Remote asked 4/6, 2009 at 20:19

17

Solved

Most implementations i've seen are for browser detection on the client side. I was just wondering if it was possible to do browser detection before sending any resources to the client. Thanks.
Bottrop asked 28/5, 2011 at 17:47

34

Solved

I've been searching around for code that would let me detect if the user visiting the website has Firefox 3 or 4. All I have found is code to detect the type of browser but not the version. How ca...
Injury asked 6/5, 2011 at 20:53

19

Solved

I need some function returning a boolean value to check if the browser is Chrome. How do I create such functionality?
Baring asked 30/12, 2010 at 18:16

2

Solved

For a Chrome Desktop Extension home page, I'm trying to detect whether a user is using Chrome for Desktop or Chrome for Mobile on Android. Currently the script below identifies Android Chrome the s...
Sexcentenary asked 19/8, 2014 at 22:15

4

Solved

How to check if html element is supported, datalist for example? MDC says it is supoorted only in Opera and FireFox.
Athelstan asked 13/8, 2011 at 2:9

5

Solved

Just stumbled upon an issue. When trying to detect IE 11 (the beta version currently on air) using Jquery, the result is 'firefox'. The same code detect IE 10. I need to know what browser the user ...
Rotten asked 8/9, 2013 at 13:16

16

Solved

I use the following PHP script as index for my website. This script should include a specific page depending on the browser's language (automatically detected). This script does not work well wit...
Alteration asked 22/9, 2010 at 14:54

11

Solved

I've done some research, and this question has come up, but not in the way I intend. I'm building a page for a client that is a QR code landing, which is a place to download an application. So he d...
Hustings asked 12/2, 2014 at 23:5

10

Solved

I would like to show my users a bar that looks like this, if: Browser is not IE; or Browser is IE but is version 8 or earlier (Note that the screenshot is just for illustration - IE 9 is supp...
Ricardo asked 11/9, 2013 at 11:14

3

I was wondering why javascript os detection techniques like navigator.userAgent, navigator.appName, navigator.appVersion and navigator.platform are in process of being dropped from web standards. ...

5

Solved

I downloaded the browscap.ini file and then pasted it to the directory "C:\wamp\bin\php\php5.4.3\extras" and i went to php.ini file and made these changes there: [browscap] ; http://php.net/browsc...
Scandent asked 30/9, 2012 at 17:20

4

Solved

I'm interested to know whether the user-agent is "Chrome" at the server end using PHP. Is there a reliable regular expression for parsing out the user-agent string from the request header?
Cindicindie asked 15/6, 2010 at 18:20

33

Solved

I am calling a function like the one below by click on divs with a certain class. Is there a way I can check when starting the function if a user is using Internet Explorer and abort / cancel it ...
Defeat asked 15/11, 2013 at 10:53

16

Solved

When I want to detect IE I use this code: function getInternetExplorerVersion() { var rv = -1; if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re =...

11

I know you should do feature detection where possible, but can you detect in Javascript if the browser is the Microsoft Edge browser? I maintain an old product and I want to display a warning that...
Glorygloryofthesnow asked 30/7, 2015 at 10:26

1

I am using a small function (first answer), that detects the browser. My setup is an apache server which is started with MAMP (Mac) on my local machine. The script is in a javascript file, which is...
Ingeingeberg asked 6/2, 2020 at 16:4

8

Solved

I need to separate IE and FF browsers from others it's a pseudo-code : If (CurrentBrowser == IE(6+) or FF(2+) ) { ... } else { ... } in protected void Page_Load() event (think so) if ((Reques...
Dickman asked 8/2, 2010 at 13:7

11

Solved

I need to detect if browser is IE or Edge with Angular (TypeScript). Is it possible? If so, how?
Theatre asked 10/1, 2018 at 8:12

© 2022 - 2024 — McMap. All rights reserved.