OO7girl
07-09-2004, 07:15 PM
Hello again,
I am using a Javascript redirect to (I think) take users of 4.x browsers and redirect them to a separate page than users of higher-version browsers. I can't seem to get NS 4.79 (which, as I mentioned in my other thread toady, I have to support for some dumb reason) to go the appropriate page (todayinhistoryjava.html). I feel kind of dumb asking this, but because it's 4.70 and not plain old 4.0, does the below JS not quality NS 4.79 as a version 4 browser? If so, how should I modify my code to get the redirect to trap all users of 4.x browsers between versions 4.0 and 5.0?
Here is the code:
<html>
<head>
<SCRIPT language="JavaScript">
<!--
var browserVer=parseInt(navigator.appVersion);
if (browserVer >= 4)
{
window.location="mainpage.html";
}
else
{
window.location="todayinhistoryjava.html";
}
//-->
</SCRIPT>
</head>
<body>
Thanks!
Amanda
I am using a Javascript redirect to (I think) take users of 4.x browsers and redirect them to a separate page than users of higher-version browsers. I can't seem to get NS 4.79 (which, as I mentioned in my other thread toady, I have to support for some dumb reason) to go the appropriate page (todayinhistoryjava.html). I feel kind of dumb asking this, but because it's 4.70 and not plain old 4.0, does the below JS not quality NS 4.79 as a version 4 browser? If so, how should I modify my code to get the redirect to trap all users of 4.x browsers between versions 4.0 and 5.0?
Here is the code:
<html>
<head>
<SCRIPT language="JavaScript">
<!--
var browserVer=parseInt(navigator.appVersion);
if (browserVer >= 4)
{
window.location="mainpage.html";
}
else
{
window.location="todayinhistoryjava.html";
}
//-->
</SCRIPT>
</head>
<body>
Thanks!
Amanda