Does anyone know how to do a redirect in coldfusion similar to this redirect in javascript? The issue I am having with javascript is that people are just turning javascript off.. Also is it possible to write something to force them to either keep javascript on or make them download it if they do not have it?
<script language="javascript">
function SelectRedirect(){
// ON selection of section this function will work
//alert( document.getElementById('pcount').value);
switch(document.getElementById('pcount').value)
{
case "0":
alert('Please select number of owners.');
window.location="";
break;
case "1":
window.location="One/ownerInfo1.cfm";
break;
case "2":
window.location="Two/ownerInfo2.cfm";
break;
case "3":
window.location="Three/ownerInfo3.cfm";
break;
case "4":
window.location="Four/ownerInfo4.cfm";
break;
case "5":
window.location="Five/ownerInfo5.cfm";
break;
}// end of switch
}
//////////////////
</script>
</head>
<h3>How many owners are taking title?
<SELECT id="pcount" NAME="pcount">
<Option value="0">Select Section</option>
<Option value="1">1</option>
<Option value="2">2</option>
<Option value="3">3</option>
<Option value="4">4</option>
<Option value="5">5</option>
</SELECT></h3>
<input type="submit" name="Submit" value="Next" onClick="SelectRedirect();">