/    Sign up×
Community /Pin to ProfileBookmark

dropdown meny problem

I’ve made a mainframe with 3 iframes. top, left and right iframe.

I put in a dropdown meny in the left iframe and I wan’t the links to open up in the right iframe. But it does’nt work. When I try any of the links in the meny a square pops up that says that there is something wrong with the page.

I can get the links open up in the same iframe as the dropdown meny, left iframe.

I don’t know what to do so that the links would open up in the right frame.

I would appreciate if someone could help me out ?

(I’m using Microsoft Frontpage to make the webpage)

Here is the javascript I’m using.

[code=php] <SELECT NAME=”meny” onChange=”self.location.href=this.options[this.selectedIndex].value;”>
<OPTION VALUE=”page1.htm”>page 1
<OPTION VALUE=”page2.htm”>page 2
<OPTION VALUE=”page4.htm”>page 4
<OPTION VALUE=”page5.htm”>page 5
<OPTION VALUE=”page6.htm”>page 6
</SELECT>
</FORM> [/code]

I hope this makes sense?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@pebjauthorMar 14.2004 — anyone that knows what I should do?
Copy linkTweet thisAlerts:
@steelersfan88Mar 14.2004 — Not sure if this will work, but you could try changing:[CODE]onChange="self.location.href=this.options[this.selectedIndex].value;">[/CODE]to[CODE]onChange="parent.frames['frame name or number'].location.href=this.options[this.selectedIndex].value;">[/CODE]Something like that should do!
Copy linkTweet thisAlerts:
@pebjauthorMar 14.2004 — thanks but it doesn't work =(
×

Success!

Help @pebj 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,
)...