|
-
Sep 23rd, 2001, 10:22 AM
#1
Thread Starter
Fanatic Member
Browser Version?
Hey
Can someone (if it is possible) give me a code to detect what browser a user is using?
If they're using Netscape I want to redirect to my netscape version and if they're using IE they get redirected to my IE version
Thanks
-
Sep 23rd, 2001, 12:48 PM
#2
<SCRIPT>
if (navigator.appName == "Microsoft Internet Explorer")
document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=msie.html">');
else
document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=netscape.html">');
</SCRIPT>
-
Sep 23rd, 2001, 12:56 PM
#3
Thread Starter
Fanatic Member
Thanks Alot
-
Oct 1st, 2001, 02:26 PM
#4
Frenzied Member
And if we are using neither?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Oct 1st, 2001, 03:03 PM
#5
PowerPoster
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Oct 1st, 2001, 04:41 PM
#6
Frenzied Member
Yes, I use the Netscape/Sun Client Sniffer.
But I want to warn people against having to do browser detection. I use it so I can show a dynamic page for newer browsers. But I stick to W3C recommendations. So if you browser has a problem showing something, it is your browser, not my page.
Disclaimer: Opera is not perfect, it simply has no proprietary extentions.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Oct 1st, 2001, 05:03 PM
#7
yes Travis you are right, but that was the only code I had at the time.
Sail, thanks that makes good reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|