whats wrong with this code?
<script language="javascript">
function checklogin(x)
{
if ((x.id.value != "peaches"
||(x.pass.value !="cream"
)
{
alert("Invalid Login"
;
return false;
}
else
window.location.replace('peaches&cream.html');
}
</script>
the problem i hav with this code is that when you enter the correct login and the correct password it doesnt redirect you to the required page.it just refreshes the page.
can anyone advise me on a solution?
thanx
-Mon3y is the r00t of all evil and every man needs roots-
<script language="javascript">
function checklogin(x)
{
if ((x.id.value != "peaches"
{
alert("Invalid Login"
return false;
}
else
window.location.replace('peaches&cream.html');
}
</script>
the problem i hav with this code is that when you enter the correct login and the correct password it doesnt redirect you to the required page.it just refreshes the page.
can anyone advise me on a solution?
thanx
-Mon3y is the r00t of all evil and every man needs roots-