Wolf_22
08-30-2005, 01:48 AM
Here's the script:
<html>
<head>
<title></title>
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
window.location = "secondLayer/indexFF.htm";
}
else if(navigator.userAgent.indexOf("MSIE") != -1)
{
window.location = "secondLayer/indexIE.htm";
}
else if(navigator.userAgent.indexOf("Netscape") != -1)
{
window.location = "secondLayer/indexNS.htm";
}
else
{
window.location = "secondLayer/indexX.htm";
}
</script>
</head>
<body>
<p>Please wait while the browser redirects you...</p>
</body>
</html>
Can Opera be included into this script too? I tried it just by copy and pasting the "else if" and inserting "Opera" as a value that was being passed. Can someone help me out with this please?
Thanks
<html>
<head>
<title></title>
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
window.location = "secondLayer/indexFF.htm";
}
else if(navigator.userAgent.indexOf("MSIE") != -1)
{
window.location = "secondLayer/indexIE.htm";
}
else if(navigator.userAgent.indexOf("Netscape") != -1)
{
window.location = "secondLayer/indexNS.htm";
}
else
{
window.location = "secondLayer/indexX.htm";
}
</script>
</head>
<body>
<p>Please wait while the browser redirects you...</p>
</body>
</html>
Can Opera be included into this script too? I tried it just by copy and pasting the "else if" and inserting "Opera" as a value that was being passed. Can someone help me out with this please?
Thanks