Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:28

Opening a window with my own specs...


Poster: punky
Dated: Tuesday August 6 2002 - 23:43:53 BST

Hello,

I set this function to open a window from the menu:

function MM_openwin(MM_file,MM_height,MM_width)
{
MM_config=""
MM_config+="toolbar=no,";
MM_config+="location=no,"
MM_config+="directories=no,";
MM_config+="status=no,"
MM_config+="menubar=no," //Not on Apple Mac for obvious reasons
MM_config+="scrollbars=no,"
MM_config+="resizable=yes," //Mac windows are always resizable
MM_config+="copyhistory=no,"
MM_config+="width="+MM_width+","
MM_config+="height="+MM_height
var MM_win=open(MM_file,"",MM_config);
MM_win.focus();
}


Now how do I specify so that when it open, it uses scrollbars without changing the function above but by just changing the part where I call the function. In other words, what should this say so when the window open, it has scrollbars??

Also, if anyone knows, how can I position the window to go to a certain part of the screen that I want to specify?

,"June","javascript:MM_openwin(\"services/june.html\",500,750)",,"June",1

Thanks!


Poster: Andy
Dated: Wednesday August 7 2002 - 9:17:48 BST

Hi,

Take a look at the new demo at
http://www.milonic.co.uk/menu/menusampl ... ampleid=16

With regard to moving your window you could try "self.moveTo(x,y)" in the opened page

-- Andy