PDA

View Full Version : Target Frame in a drop down menu?



Manetheran
13th June 2006, 07:24 AM
Basically I have a drop down menu in my website which is in a frame on the left. I want it to open the links in the main frame. How do I do that? The code looks like this:


<form name="jump">
<p><b>Choose:</b><br>
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option>Choose:</option>
<option value="link">linkname</option>
<option value="link2">linkname</option>
</select></p>
</form>


I've tried putting in target="main" everywhere I can think of, but I'm pretty sure it has something to do with this part of the code:

onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;"

Help please?

Carnage
17th June 2006, 09:17 AM
would it not be something like

onchange="document.framename.location=whatever"