Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdown box linking query

Status
Not open for further replies.

obaluba

Technical User
Sep 24, 2001
49
GB
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=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

<form name=&quot;form1&quot;>
<font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;>Search By Mark:
<select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,1)&quot;>
<option selected>Please Select</option>
<option value=<a href=&quot; target=&quot;cwindow&quot;> All Astra MK2</option>
<option value=&quot; Astra MK3</option>
<option value=&quot; 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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top