Hi just wondering why this script doesnt redirect..thanks in adavnce(it doesnt redirect the browser, although the alert shows when the checkbox is checked :
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Untitled Document</title>
<script language=”javascript”>
function checkscript(){
if (document.forms[0].checkbox.checked)
{
alert(“i have been checked”);
window.location = “
}else{
alert(“please agree to out terms and conditions”);
}
}
</script>
</head>
<body>
<form action=”” onsubmit=”return checkscript()”>
<p>
<input type=”checkbox” name=”checkbox” value=”checkbox”>
</p>
<p>
<input type=”text” name=”textfield”>
</p>
<p>
<a href=”” onClick=”checkscript()”>I Agree</a>
</p>
</form>
</body>
</html>