SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jun 2001
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can i determine which browser is being used?

    Is it possible for me to determine which browser someone is using and send them a page that is made around their browser?

  2. #2
    SitePoint Zealot
    Join Date
    Apr 2001
    Location
    Houston, TX
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out javascripts.com or javascriptsource.com....I have seen many out there
    Joel Croft
    Everyone's Hosting
    Domain hosting and registration

  3. #3
    SitePoint Enthusiast lieblick's Avatar
    Join Date
    Jun 2001
    Location
    Tallahassee, FL
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm at work ... but at home I had once used code because graphically the site lined up in IE but not netscape, and vs vsa ... so I had 2 custom index pages, depending on the browser.

    You could do it using javascript or PHP with minimal effort!

  4. #4
    SitePoint Addict zoordaan's Avatar
    Join Date
    Feb 2001
    Location
    NYC/Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <SCRIPT language="JavaScript">
    <!-- hide
    n = (document.layers) ? 1:0
    ie = (document.all) ? 1:0
    
    if (n||ie)
    alert("You have the correct browser: IE4.0+/NS4.0+.")
    else{
    alert("You must have Netscape 4.0 or Internet Explorer to view Proteus.")
    window.location='alternative.htm';
    }
    
    
    // -->
    </SCRIPT>
    I'm sure that you can find a better example somewhere. I used this on an old homepage to check to see if layers were enabled, if they were not the user got redirected to an alternative html page.

  5. #5
    SitePoint Member kate S =D's Avatar
    Join Date
    Jun 2001
    Location
    UK
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I'm afraid I can't help you find the script, but I've seen lots of sites achieving the target without having to sending them yourself.

    What I mean is that you can put marks for different paths on your splash page. For instance: I.E.4+ // NS 5 or something..

    Which ever you, or rather the visitors prefer actually. What do you prefer, members? Do you prefer choose your own path or to be directed automatically??

    Sorry, I don't think I 'm any help...

  6. #6
    e=2.718281828459045235360 HyperBaseball's Avatar
    Join Date
    Aug 2000
    Location
    boston, MA
    Posts
    277
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If for some reason you just need to find what browser your visitors are using (without directing them to a separate page) check out SiteMeter. Along with a lot of other stats, they'll let you know what browser each and every visitor is using.
    Jason Unger is me.
    "Homer no function beer well without"
    http://www.jasonunger.com

  7. #7
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have access to PHP, try:

    Code:
    <?php
    echo $USER_AGENT; ?>
    Just a thought!

    Happy coding!
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.


Bookmarks

Posting Permissions

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