Click to See Complete Forum and Search --> : Hey people... can anyone help?


mysteriousal
04-01-2003, 07:54 AM
...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

www.mysteriousal.com/dynamic/FRAMEindex.html

gil davis
04-01-2003, 08:00 AM
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]);
}All you need to do is add another parameter separated by the "|" and use that for the features parameter. For example:
if(loc.length == 3)
window.open(loc[1], loc[0], loc[2]);
...
<option value="_blank|20.html|width=200,height=250">

mysteriousal
04-01-2003, 11:03 AM
That's done it!


Thanks, Gil... :)