Link to home
Start Free TrialLog in
Avatar of thunderchicken
thunderchicken

asked on

IE <-|-> Netscape Redirect

Can someone give me a script that when a user logs onto a page, it will find out what browser they are using and redirect them to another page?

for example

If browser = IE then
      goto "ie.asp"
if browser = Netscape then
      goto "netscape.asp"

This is needed for >= 3.0 browsers
thanks

Avatar of ManoloMA
ManoloMA

Try this:

<%
If browser = IE then
      response.redirect "ie.asp"
elseif browser = Netscape then
      response.redirect  "netscape.asp"
end if

%>

Manolo
ASKER CERTIFIED SOLUTION
Avatar of fruey
fruey
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thunderchicken

ASKER

Seems like this will work for me, many links for me to play around with... thanks!
Yeah no problem. Usually I'd post the code but that is such a good reference that it's better to have you surf there than to post a huge amount of info!

Cool, thanks.