/    Sign up×
Community /Pin to ProfileBookmark

Frustrated with frames!

I’m a relatively new javascript user (so be nice) and I have a situation I can’t figure out.

I have links in a dropdown menu that link from a company intranet site to several internet sites.

The problem is that the site that this dropdown menu resides on is a frames site and the links open the internet sites in the main frame of the frame set and not in a new browser session the way I would like them to.

This is the generic code I’m using to control the dropdowns – what am I missing?

<!– function functionName() { location.href = formName.listName.options formName.listName.selectedIndex].value } // –>

Thanks!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JonaMar 27.2003 — function functionName(){

location.href = window.parentFrameName.formName.selectboxName[window.parentFrameName.formName.selectboxName.options.selectedIndex].value;

}

That should all go on one line...
×

Success!

Help @mereichertz 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...