Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6320705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:01:27+00:00 2026-05-24T16:01:27+00:00

Im developing a javaScript code and I want to determine the version and brand

  • 0

Im developing a javaScript code and I want to determine the version and brand of the client’s browser, here’s the piece of code I’m using to do so :

var browserName ; 
function BrowserCheckin () 
{

    if(navigator.userAgent.indexOf("Mozilla") > 0 )
        browserName = "Mozilla" ;
    if (navigator.userAgent.indexOf("MSIE") > 0 )
        browserName = "InternetExplorer";
    if (navigator.userAgent.indexOf("Chrome") > 0)
        browserName= "Google Chrome" ; 
    if(navigator.userAgent.indexOf("Opera") > 0 ) 
        browserName = "Opera" ; 
    document.write("<h1>"  + browserName + "</h1>") ;
}

but when i run my code using “Google Chrome” , the useAgent property returns a string containting :

“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like
Gecko) Chrome/12.0.742.112 Safari/534.30 “

But I don’t get what that “Mozilla/5.0” is doing there , anyone has any Idea ?
(and one more thing , I use Linux as my Operating System)

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:01:28+00:00Added an answer on May 24, 2026 at 4:01 pm

    For historical reasons, nearly all browsers (except Opera) prepend Mozilla/ to their user agent.

    For example, here are some common user agents:

    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko)
                Chrome/12.0.742.112 Safari/534.30                    # Chrome 12
    Mozilla/5.0 (X11; Linux x86_64) Gecko Firefox/5.0                # FF 5
    Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)        # IE 9
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.8.119 Version/11.10  # Opera 11.10
    

    For a detailed list, refer to online databases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing some client side Javascript that is using some JSON web services
I'm developing a web page using django and I want to add some javascript
I'm developing a RIA application where there is javascript on the client (i'm using
When developing JavaScript, I tend to separate JavaScript code out into different files and
i am developing a gadget and i am using JavaScript to change innerHTML of
I'm developing an OAuth authentication flow purely in JavaScript and I want to show
I am developing a study project using the mosembro (mobile semantic browser) project inside
I am developing a javascript filtering of some results and have some difficulties.. Here
I would like to know what are some downsides using too much JavaScript code
I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.