Well... this code had work last year. But after my computer had problems....it didn't work anymore.

Hello!

This code above detects the browser and directs to INDEX.ASP
The problem is that it doesn't go to the . ASP.

<html>
<head>
<title>.</title>
<script language=JavaScript>
function executar ()
{
if (document.all)
{
browser="ie"
}
else if (document.layers)
{
browser="netscape"
}
else if (document.getElementById? 1:0)
{

browser="NN6"
}
else
{
browser="others"
}
document.cookie="Plataforma=" + window.navigator.platform;
document.cookie="Browser=" + browser;
document.location.href="index.asp"
}

</head>


<body onLoad=executar()>

</body>
</html>


WHAT'S HAPPENNING?

On the IE the pages is grey. On the Netscape the code appears on the browser. And it doesn't go to the INDEX. ASP.



Bye:::::::::::::::::::::::