Browser detection

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Anthony
Posts: 23
Joined: Thu Nov 23, 2006 2:14 pm
Location: Scotland

Browser detection

Post by Anthony »

Hi

My Firefox insists on calling itself Netscape. Since the two require different methods of page formatting it's important that I can tell them apart.

In fact - I'd be grateful for any spare wisdom on browser detection.

Thanks

Anthony
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

that's weird about firefox. Are you trying to detect for JS or CSS or ??

http://centricle.com/ref/css/filters/ or http://css-discuss.incutio.com/?page=CssHack might help

I haven't had a client request support for netscape in a quite a while. It must be under 1% at this point. Not saying you don't but seeing as you likely have more people with low vision using your site than people using netscape - I'd spend any extra dev cycles availble to ensure a good experience for them and just ensure some one using netscape can 'use' the site. progressive enhancement and all that jazz...

Will
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Post by MikeyB »

That does sound odd, I know you can easily change the user agent in Firefox, so I wonder if that has been done.

If you goto http://whatsmyuseragent.com/ it will tell you what your browser is really calling itself! Look for HTTP_USER_AGENT
My Firefox comes up as:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

You can get an Add On for Firefox to very easily change the user agent:
https://addons.mozilla.org/firefox/59/
Post Reply