I want to redirect the user to a different page depending on what type of choices they make on a form using javascript (client side).
Does anyone know how to do this - or whats wrong with the code below?
<head>
<script language="javascript">
function formChoice(theform) {
window.location = "newpage.htm"
}
</script>
</head>
<body>
<form name="ex" onsubmit="formchoice(this)">
.....
Naturally the actual script has if statements etc. which are left out here!
TIA,
Kevin [sig][/sig]
Does anyone know how to do this - or whats wrong with the code below?
<head>
<script language="javascript">
function formChoice(theform) {
window.location = "newpage.htm"
}
</script>
</head>
<body>
<form name="ex" onsubmit="formchoice(this)">
.....
Naturally the actual script has if statements etc. which are left out here!
TIA,
Kevin [sig][/sig]