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: Saturday July 14 2012 - 06:07:42

I'am trying to implement a menu item opening a new window


Poster: trytrix
Dated: Friday September 27 2002 - 21:10:01 BST

HI Guys,

I'am trying to implement a menu item opening a new window.
I included the suggested function:
function openNewWindow(winURL,winWidth,winHeight,winConfig){
mmConfig=""
mmConfig="width="+winWidth+","
mmConfig+="height="+winHeight+","
mmConfig+=winConfig
var mmWin=open(winURL,"",mmConfig);
mmWin.focus();
}

into the "array.js" file.

Under Miscellaneous Menu Properties both entries :
,"<center>Onze nieuwsbrief","javascript:openNewWindow(\"Nieuwsbrief.html\", 500, 500, \"toolbar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,\")",,,1

,"<center>Open Google in Window","javascript:openNewWindow(\"http://www.google.com\", 600, 400, \"status=yes,location=yes,resizable=yes\")",,,1

generate an "Error on page" error!

What am I doing wrong ?
Any idea ??

Many thanks in advance.
:P TryTrix


Poster: trytrix
Dated: Tuesday October 1 2002 - 19:26:54 BST

The solution is simple !!

The function adapted as follows:

function openNewWindow(winURL,winConfig){
mmConfig=""
mmConfig+=winConfig
var mmWin=open(winURL,"",mmConfig);
mmWin.focus();
}


The menu item :
,"<center>Onze nieuwsbrief","javascript:openNewWindow(\"Nieuwsbrief.html\",\"width=450,height=475,toolbar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no\")",,,1

:oops: TryTrix