Results 1 to 7 of 7

Thread: Browser Version?

  1. #1

    Thread Starter
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673

    Arrow Browser Version?

    Hey


    Can someone (if it is possible) give me a code to detect what browser a user is using?

    If they're using Netscape I want to redirect to my netscape version and if they're using IE they get redirected to my IE version

    Thanks
    K i n g s

  2. #2
    scoutt
    Guest
    <SCRIPT>
    if (navigator.appName == "Microsoft Internet Explorer")
    document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=msie.html">');
    else
    document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=netscape.html">');
    </SCRIPT>

  3. #3

    Thread Starter
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    Thanks Alot
    K i n g s

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    And if we are using neither?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    read this, i don't think you could ask for more:

    http://www.mozilla.org/docs/web-deve...wser_type.html

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Yes, I use the Netscape/Sun Client Sniffer.

    But I want to warn people against having to do browser detection. I use it so I can show a dynamic page for newer browsers. But I stick to W3C recommendations. So if you browser has a problem showing something, it is your browser, not my page.

    Disclaimer: Opera is not perfect, it simply has no proprietary extentions.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  7. #7
    scoutt
    Guest
    yes Travis you are right, but that was the only code I had at the time.

    Sail, thanks that makes good reading.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width