Help with browser detection please.

Discussion in 'Scripts' started by shnabz, Jan 22, 2012.

to remove all ads.
  1. shnabz

    shnabz New Member

    Messages:
    2
    Hello,

    I'am running a website from home (iis), nothing fancy, I have PHP. I've noticed that my site doesn't work well on IE, but perfectly on Firefox.

    Could someone please help me write a script, or some html, so that if IE is detected, the user be taken to an alternate page that asks them to use firefox instead?

    I'am crap at all this ATM but I intend to get better, so you may need to respond as you would to a child.

    Thankyou, MrMike

    P.S. my website is the above alias ".co.uk"
     
  2. Phreaddee

    Phreaddee Super Moderator Staff Member

    Messages:
    1,978
    Google ie conditional statements. Will tell u all u need to know.
     
  3. shnabz

    shnabz New Member

    Messages:
    2
    Thankyou :)
     
  4. DesignerBill

    DesignerBill New Member

    Messages:
    145
    Nobody else on this forum likes IE either, but be aware that if you tell an IE user to try Firefox instead, you will most likely lose that visitor to your site. Better to make it compatible with all browsers.
     
  5. Phreaddee

    Phreaddee Super Moderator Staff Member

    Messages:
    1,978
    bill is right, although i usually do a redirect for ie6.

    Each to their own, i just dont see the numbers for ie6 warrant the effort
    (unless the client really “needs“ ie6 to work).

    Ie7+ is a different thing altogether.
    They can be targetted with their own conditional and given an alt css.
     
  6. che09

    che09 New Member

    Messages:
    337
    This very well said. Put yourself as the visitor, would like to waste your time waiting for the redirection and or changing your browser into the compatible one?!?
     
  7. jumpingspider

    jumpingspider New Member

    Messages:
    252
    Che is right! If I were a visitor I'll definitely won't wait for such!
     

Share This Page