/    Sign up×
Community /Pin to ProfileBookmark

Dropdown Menus

I tried posting this once before but have never seen it appear, so if it a repeat I appologize.

What i am wanting to do is have a pop-up window which i can create. Then, put a dropdown box with links to other pages. My dropdown box script is as follows:

<head>
<script language=”JavaScript” type=”text/JavaScript”>
<!–
function MM_jumpMenu(targ,selObj,restore){
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
//–>
</script>
</head>

<body>
<p>
<select name=”menu1″ onChange=”MM_jumpMenu(‘parent’,this,0)”>
<option selected>Scroll to Select</option>
<option value=”new_dawn.htm”>Return to Directory</option>
</select>
</p>
</body>

This works fine IF, the dropdown box is on the main window, BUT if put this script on the pop-up window, it will open the link in the pop-up window, not in the main window, which is what i want it to do.

Does any know how to change this script so that the new page opens in the main window???

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Paul_JrApr 04.2004 — You could try changing the &#8220;parent&#8221; in [FONT=courier new]<select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> [/FONT] to &#8220;opener&#8221;.
×

Success!

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

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

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