Questions tagged [browser-detection]

Detecting the type and version of the browser the user uses to view the webpage.

Detecting the type and version of the browser the user uses to view the webpage. Most of the time the decision is based on the User-agent string or the existence of some proprietary properties.

In most cases, it is considered bad practice. Feature detection is to be used instead.

520 questions
-2
votes
1 answer

Javascript: detect if browser is IE, then hide HTML

I want to create a JavaScript function to hide the html if the visitor is using an IE browser. I did some research on Stackoverflow and the below is what I came up. It doesn't work. Can anyone tell me what I did wrong? Thanks! HTML:
-2
votes
2 answers

Is there any way to test if a user is on windows XP?

We host our site on MediaTemple's grid server, which allows you to install an SSL certificate even though it's shared hosting. We have a few forms on the site that are processing payments via Stripe, which makes this mandatory for us. The problem…
-2
votes
1 answer

Mobile Detect: "Warning: cannot modify header information"

Possible Duplicate: Headers already sent by PHP I have inherited a website that has a mobile detect php script running that should redirect the user to a subdomain if the user is accessing the website via a mobile device. The website works fine…
tjcss
  • 856
  • 1
  • 12
  • 33
-2
votes
2 answers

Force Employee To Use Firefox + Specified Version For Company Intranet

Please not not turn this into a discussion about which browser is better and the ethics of forcing a browser. It's an intranet, and it's what I am required to do so everyone calm down =o) I need to prevent employees from trying to bypass the check…
kittycat
  • 14,983
  • 9
  • 55
  • 80
-2
votes
5 answers

How to show different pages for different versions of IE

Possible Duplicate: Browser detection in javascript? I was wondering how can I detect IE 6, IE 7 and IE8 and say if any of these show different page instead of index. Something like update.html would be just fine. I have seen these IF IE6 and…
dvlden
  • 2,402
  • 8
  • 38
  • 61
-2
votes
1 answer

browser detection only display on mobile and another code on desktop

I have tried so many different ways for this to work. What I have is a website where I have a streaming radio player at the top of the page. Normally I have just the default given script
-3
votes
1 answer

PHP What browser the user is using?

This is my current code, but I get a parse error when I run it? Have I just made a silly error or will this not work? Thanks in advance. PHP Test
-3
votes
2 answers

Detect Fullscreen key combination for various environment - JS

I need to show Fullscreen key combination for various environment in a message to User on my website. That needs to be detected based on environment. For eg Safari+windows = "F11" and Safari+mac = "cmd+shift+F"
-4
votes
1 answer

How to detect the current browser

Question: Is there a easy way to detect the browser of the user ? Details: I would like to change for example the value of background-color of body. I've already see something like