Click to See Complete Forum and Search --> : targets for menu


Kupotek
08-27-2004, 02:06 PM
Hi, I'm currently really altering my page, to allowe comments on news which is in a iframe -

prior, i had a dropdown menu which was directly in the src iframe so it automatically went to the frame -

but now, the dropdown menu is outside the frame so the options are opening up a _blank, instead of going into the iframe named "news"

Here is the form as it currently stands:


<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO" "if(options[selectedIndex].value) window.open(options[selectedIndex].value,'news','config');">


the iframe is called news, and i have a outer navigation whos target="news" all im trying to do is get the dropdown menu target to be news too.

Website is in my sig if you want to see it in action. Youll also note the dropdown menu seems to need some aligning or resizing but Im sure i can work that out. Thanks for any input on this matter!

-kupotek

Kupotek
08-27-2004, 02:15 PM
YAY I figured it out :)

<select name="menu" onChange="window.open(options[selectedIndex].value,'news','config');" value="GO">

PhillMc
08-27-2004, 02:18 PM
The dropdown targets the iframe and works fine in FireFox and Internet Explorer.

Kupotek
08-27-2004, 02:28 PM
ya it worked automatically before i moved the form outside the iframe, then i had to get creative :)