/    Sign up×
Community /Pin to ProfileBookmark

targets for menu

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:

[code]
<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’);”>
[/code]

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

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@KupotekauthorAug 27.2004 — YAY I figured it out ?
<i>
</i>&lt;select name="menu" onChange="window.open(options[selectedIndex].value,'news','config');" value="GO"&gt;
Copy linkTweet thisAlerts:
@PhillMcAug 27.2004 — The dropdown targets the iframe and works fine in FireFox and Internet Explorer.
Copy linkTweet thisAlerts:
@KupotekauthorAug 27.2004 — ya it worked automatically before i moved the form outside the iframe, then i had to get creative ?
×

Success!

Help @Kupotek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...