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

  • SEARCH
  • Home
  • 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 980091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:19:30+00:00 2026-05-16T04:19:30+00:00

I m tring to detect browser using javascript in my facebook application. I m

  • 0

I m tring to detect browser using javascript in my facebook application. I m using following code:

if(navigator.appName == “Microsoft Internet Explorer”)
{
//do somthig
}

but this code is not working. Please help me.

  • 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-16T04:19:31+00:00Added an answer on May 16, 2026 at 4:19 am

    The following js code is from vbb

    var userAgent=navigator.userAgent.toLowerCase();
    var is_opera=((userAgent.indexOf("opera")!=-1)||(typeof (window.opera)!="undefined"));
    var is_saf=((userAgent.indexOf("applewebkit")!=-1)||(navigator.vendor=="Apple Computer, Inc."));
    var is_webtv=(userAgent.indexOf("webtv")!=-1);
    var is_ie=((userAgent.indexOf("msie")!=-1)&&(!is_opera)&&(!is_saf)&&(!is_webtv));
    var is_ie4=((is_ie)&&(userAgent.indexOf("msie 4.")!=-1));
    var is_ie7=((is_ie)&&(userAgent.indexOf("msie 7.")!=-1));
    var is_ie8=((is_ie)&&(userAgent.indexOf("msie 8.")!=-1));
    var is_ps3=(userAgent.indexOf("playstation 3")!=-1);
    var is_moz=((navigator.product=="Gecko")&&(!is_saf));
    var is_kon=(userAgent.indexOf("konqueror")!=-1);
    var is_ns=((userAgent.indexOf("compatible")==-1)&&(userAgent.indexOf("mozilla")!=-1)&&(!is_opera)&&(!is_webtv)&&(!is_saf));
    var is_ns4=((is_ns)&&(parseInt(navigator.appVersion)==4));
    var is_mac=(userAgent.indexOf("mac")!=-1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to detect browser using following code, if ($.browser.msie && parseInt($.browser.version) >=
I have been trying to detect the browser language preference using JavaScript. If I
I'm trying to use this line to detect browser type: IE or Firefox. alert(isBrowser(Microsoft));
I'm trying to detect the position of the browser's scrollbar with JavaScript to decide
I'm trying to accurately detect when the browser goes offline, using the HTML5 online
I'm trying to detect when the browser has stopped being resized. The following works,
I am trying to detect the browser in my C# code by comparing the
Thanks to Perfection kills , we can use the following JavaScript to detect event
I'm trying to detect the browser's current size (width and height). I know it's
I'm trying to get the onreadystate value from the browser control do detect when

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.