[thelist] javascript redirect
Peter-Paul Koch
ppk at xs4all.nl
Wed Aug 23 12:53:31 CDT 2000
>I have finally decided to write a page that probably needs a redirect
>for Netscape.
>
>It seems like it would be simple, but I don't know how.
>
>I want Netscape users (all of them) to go one place,
>and everyone else to go some other place. seamlessly.
if (navigator.appName == "Netscape" &&
navigator.userAgent.indexOf("compatible") == -1)
location.href="netscapepage.html" <-- one single line!
else location.href = "otherpage.html"
ppk
More information about the thelist
mailing list