Forum Moderators: open

Message Too Old, No Replies

redirect based on platform AND browser?

         

radardadar

11:52 pm on Jan 8, 2004 (gmt 0)



Could someone help me out with this little script here, it was posted at:

[webmasterworld.com...]

the solution works great but how do I add browser version to the equation?
This is what my script would have to do:

1. if user is on Mac IE they go to Mac page
2. if thy're on Mac Safari, they go to Safari page
3. if PC Netscape 4.x they're redirected to netscape page
4. if they're on PC Netscape 6(or 7) they go to appropriate page
5. if they're on PC IE 4.x and up, they stay where they are

luckydude

1:26 am on Jan 9, 2004 (gmt 0)

10+ Year Member



yeah, I would also like to know how to do it. I know how to redirect page based on user's browser name and version, but I don'w know how to do it based on PC or Mac. I am sure JS gurus here know how to do it.

Thanks
luckydude

moonbather

3:03 am on Jan 9, 2004 (gmt 0)

10+ Year Member



navigator.platform
is available for modern browsers.

I'd also suggest a Google search on object detection javascript.