/    Sign up×
Community /Pin to ProfileBookmark

Drop down menu link, in one frame needs to load in another

Firstly thanks for reading, heres the problem; i have a page with two frames A & B, in frame A has a drop down menu script:

<SCRIPT>
function getSelect(s) {
return s.options[s.selectedIndex].value
}
</SCRIPT>
<FORM>
<SELECT NAME=”list” SIZE=1 OnChange=”location=getSelect(this)”>
<OPTION value=”#”> -> Choose Page <-
<OPTION value=”http://www.page.com”>This Weeks Odd News
<OPTION value=”http://www.page.com”>Archives
</SELECT>

Now i want a user to click a selection on the menu, and have it load in frame B. Can this be done and how??

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@requestcodeNov 24.2003 — Try this:

<SCRIPT>

function getSelect(s) {

parent.frameb.location=s

}

</SCRIPT>

<FORM>

<SELECT NAME="list" SIZE=1 OnChange="getSelect(this.options[this.selectedIndex].value)">

<OPTION value="#"> -> Choose Page <-

<OPTION value="http://www.page.com">This Weeks Odd News

<OPTION value="http://www.page.com">Archives

</SELECT>
Copy linkTweet thisAlerts:
@Blood_AngelauthorNov 24.2003 — Ok it says it has a "Unterminated string error"

<SELECT NAME="list" SIZE=1 OnChange=getSelect(this[COLOR=crimson].[/COLOR]options[this.selectedIndex].value)">

where that red fullstop is char 51

i have only been learning scripting for a few days so i am unsure of what it means.
×

Success!

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