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:D
Thanks
Printable View
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:D
Thanks
<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>
Thanks Alot:D
And if we are using neither?
read this, i don't think you could ask for more:
http://www.mozilla.org/docs/web-deve...wser_type.html
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.
yes Travis you are right, but that was the only code I had at the time.
Sail, thanks that makes good reading.