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 635443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:24:19+00:00 2026-05-13T20:24:19+00:00

if(firefox and is on a computer){ alert(‘using firefox on a computer’) }else{ alert(using something

  • 0
if(firefox and is on a computer){
alert('using firefox on a computer')
}else{
alert("using something else!");
}

How can I do this?

  • 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-13T20:24:19+00:00Added an answer on May 13, 2026 at 8:24 pm

    What you’re after is known as browser detection:

    if ($.browser.mozilla) { ... 
    

    However, browser sniffing is discouraged, as its easy to spoof the user agent, i.e. pretend to be another browser!

    You’d best use feature detection, either in your own way, or through the jQuery.support interface: http://api.jquery.com/jQuery.support/

    Here’s an article on extending it for your own use:
    http://www.waytoocrowded.com/2009/03/14/jquery-supportminheight/

    Edit:

    Found this post as well which helps: When IE8 is not IE8 what is $.browser.version?

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

Sidebar

Related Questions

Possibly this is related to Using a plugin generated with Firebreath in a Firefox
In Firefox, I am inserting text into ~500 DIVs using this code: $(.divs).text(default); //
I use Firefox as default browser in my computer. I need to develop the
Firefox 3.5 does not allow creating java OBJECT tag with Javascript (document.write)? this technique
Firefox 3 now stores bookmarks in a Sqlite file called profiles.sqlite. This file is
Firefox recently blacklisted the plugin that allows xbaps to work in firefox This is
Firefox has this nice find-a-text-on-the-page dialog, which is non-modal and shows up at the
My site works fine in Firefox, but it crashes in IE. I am using
I am self-hosting a Firefox add-on that users can download from my website. When
I'm using Firefox 7.0.1 on Windows 7 and I went to a webpage that

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.