Click to See Complete Forum and Search --> : Redirect problem...


fkn
05-16-2003, 10:05 AM
I need to redirect users that donīt have Java Virtual Machine installed, to a different page.

Anybody have any suggestions?

I have a script that redirects browser versions older than IE5.5, but how can I redirect browsers that donīt have JavaVM?

Hereīs the script for redirecting browsers older than IE5.5 to get you started...


-------------SCRIPT------------------------------------------------
<script language="javascript" type="text/javascript">

var pos = navigator.userAgent.indexOf('MSIE');
var bVer = navigator.userAgent.substring(pos + 5);
var pos = bVer.indexOf(';');
var bVer = bVer.substring(0,pos);
var bName = navigator.appName;

if (bName == "Microsoft Internet Explorer" && bVer < 5.5) //if IE 5.0 or less
{
window.location = "upgradeIE.htm";
}

</script>

khalidali63
05-16-2003, 10:10 AM
if(!window.navigator.javaEnabled()){
//java pluggin is not installed
//redirect to the page
}

Greelmo
05-16-2003, 10:10 AM
you can use the <META> tag to automatically redirect people without JavaScript capabilities. Furthurmore, you can redirect ALL users with META. Place the following code in the head of your document:

<META HTTP-EQUIV="REFRESH" CONTENT="number of SECONDS; URL=newpage_or_URL.html">

i hope that works for you.

khalidali63
05-16-2003, 10:14 AM
Redirection using meta tags is not recomended..Please use other solutions if its possible.

http://www.w3.org/TR/html4/struct/global.html#h-7.4.4.2