This script should be simple ... I am trying to get the page to change based on selection. It always goes to Yahoo though, never Google (if I select the second.) Any help is appreciated!!!!!!!
<script language="javascript">
function DoTheCheck() {
if (document.form1.audience.options[0].text = "All Community")
{
self.location = "http://www.yahoo.com"
}
else if(document.form1.audience.options[1].text = "Men")
{
self.location = "http://www.google.com"
}
else
{
alert("Getting Close!!!")
}
}
</script>
<form name="form1">
<select name="audience">
<option value=0>All Community</option>
<option value=1>Men</option>
<option value=3>Women</option>
<option value=4>Cooks</option>
<option value=5>Eaters</option>
<option value=6>Youth (Ages 14-20)</option>
<option value=7>Young Adult (Ages 18-30)</option>
<option value=8>Family</option>
<option value=9>Ages 50 and Better</option>
<option value=>Firemen</option> </select></form>
<input type="submit" onClick="DoTheCheck()">







Bookmarks