/    Sign up×
Community /Pin to ProfileBookmark

Hey people… can anyone help?

…I need to specify the window size of a popup from a Jumpmenu…

Specifying window size from a regular link is okay, but I’m having problems with doing it from a Jumpmenu.

All the links I’m using are different size popups… So I need to specify size for each link, rather than run one script to do them all…

Can anyone help me out here?

Thanks-

Mysterious Al

You can check my source at

[url]www.mysteriousal.com/dynamic/FRAMEindex.html[/url]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisApr 01.2003 — You have this in your code that opens the window:function jump(menu){

var loc = menu[menu.selectedIndex].value.split("|");

if(loc.length == 2)

window.open(loc[1], loc[0]);

}[/quote]
All you need to do is add another parameter separated by the "|" and use that for the features parameter. For example:<i>
</i> if(loc.length == 3)
window.open(loc[1], loc[0], loc[2]);
...
&lt;option value="_blank|20.html|width=200,height=250"&gt;
Copy linkTweet thisAlerts:
@mysteriousalauthorApr 01.2003 — That's done it!


Thanks, Gil... ?
×

Success!

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