browser type detect and redirect
- Started
- Last post
- 5 Responses
- wwfc
morning!
I hope that someone might be able to help me achieve the following - I am trying to set up an index page that is able to detect the users browser/os type and then once it has detected the browser and platform it redirects to a page specific to that browser.
For example a visit from someone using IE on a pc will be directed to one page and someone using safri on a mac will go to a different page.
I have seen different snippets of code that allow the user spec to be displayed but not how to redirect the user once the spec is decided.
Is it possible to do this or should I pursue a different route?
Any help would be good ;-)
- wwfc0
...think I got it sussed (to an extent)...
need a favour from the nt community if poss?!
could people go to this url and tell me what page they get redirected to and what browser & platform they are on?
bit of a mundane request - but feedback from a cross section would be very useful ;)
thanks in anticipation
- wwfc0
...ha ha ha - I'm a doughnut - missed the url completely...
...got it sorted too - I'm going to go and find a dark room to lie down in!!!
- welded0
Here is a good browser detect script:
http://www.quirksmode.org/js/det…
- acescence0
i find it more efficient to do all the detection server-side, then you can have one page with all the conditional stuff nicely encapsulated together
- welded0
There's that, too. Plus it'll work even if the user has JS turned off or some such silliness.