SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Redirect for 3.0 browsers
-
Jan 3, 2000, 00:55 #1
- Join Date
- Nov 1999
- Location
- NH,USA
- Posts
- 16
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks Richard!
-
Jan 3, 2000, 10:19 #2
- Join Date
- Nov 1999
- Location
- NH,USA
- Posts
- 16
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi, could someone give me a place to get the code to redirect 3.0 browser users to an alternate site for them - and do you have to call the index page something else instead of what you called the 4.0 version?
Thanks for any help!
-
Jan 3, 2000, 10:32 #3
- Join Date
- Aug 1999
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try this....
<script language="javascript">
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) browserVer = "1";
else browserVer = "2";
if (browserVer == 2) {
// .... your redirect code here...
}
</script>
If that doesn't work for you, look at http://www.javascripts.com They have tons of redirects.
Richard
------------------
rperry@tioloco.com
Bookmarks