This may have been covered before but I have a dropdown box and i want each link to open in the same window the page is in but how do you put the link in? the bit of my code looks like this:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form name="form1">
<font color="#FFFFFF" size="2" face="Tahoma">Search By Mark:
<select name="menu1" onChange="MM_jumpMenu('parent',this,1)">
<option selected>Please Select</option>
<option value=<a href=" target="cwindow"> All Astra MK2</option>
<option value=" Astra MK3</option>
<option value=" Astra MK4</option>
</select>
</font>
</form>
in the mk2 section i've tried to target itt, but that doesnt work!
Is there a simple solution?
thanks in advance!!
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form name="form1">
<font color="#FFFFFF" size="2" face="Tahoma">Search By Mark:
<select name="menu1" onChange="MM_jumpMenu('parent',this,1)">
<option selected>Please Select</option>
<option value=<a href=" target="cwindow"> All Astra MK2</option>
<option value=" Astra MK3</option>
<option value=" Astra MK4</option>
</select>
</font>
</form>
in the mk2 section i've tried to target itt, but that doesnt work!
Is there a simple solution?
thanks in advance!!