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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:09

openNewWindow code still needed with V5??

Poster: Ruth
Dated: Saturday September 27 2003 - 2:23:58 BST

Do we still need to put
<script language=javascript>
function openNewWindow(winURL,winWidth,winHeight,winConfig)
   var mmWin=open(winURL,"",mmConfig);


on all the pages? If not I'd love to get rid of it, I've got so many scirpts being able to eliminate any would be loverly.


Poster: John
Dated: Saturday September 27 2003 - 6:48:50 BST

When was it ever said that code was needed on all pages? It's not part of the standard system.

Poster: Ruth
Dated: Saturday September 27 2003 - 8:45:41 BST

well, I believe it was with version 3 and I'm pretty sure it was Andy that put it up. I think it was in one of the samples but they are not available to check anymore. I think it was the one with the new windows, different sized windows and iframes. I remember it had Google on it and it was version 3, I remember it was one of the first I tried. But I take it I can get rid of that code in the body section of my pages?


Poster: Andy
Dated: Saturday September 27 2003 - 8:50:22 BST

If you want to open a customizable window on each page then I suppose the code would be necessary on each page. But if not, it may have been a waste of time and effort.

However, you'll be pleased to know that it IS embeded now into version 5.0

There is a new property called targetfeatures, here's a snippet

aI("text=Open Google;url=;target=windowname;targetfeatures=width=300 height=300");

More info is at

-- Andy

Poster: Ruth
Dated: Saturday September 27 2003 - 17:48:36 BST

Thanks Andy. If it's in the new menu then I don't need that code anymore. One question... my knowledge of things is kind of hit or miss about html etc. When you have that target=windowname I take it you windowname to blank or new or parent etc? How would you do the equivalent of this:
<A href="#" onClick=" ('',
resizable=yes'); return false;">etc.

so that it would open a different window each time? Also, let's say you click a link from page 1 which opens a new window page 2 and on that is a link, how would you get that link to open back in page 1? Thanks


Poster: Hergio
Dated: Sunday September 28 2003 - 3:52:25 BST

the windowname that andy is referring to is the name that is given to the window that is opened. If you specify target to equal _blank, that will open up an entirely new window every time. Give it a name otherwise.

And in the child window, if you have a link and you want to have it update the parent (or opener) window, use this little piece of javascript. Include it into your page and then have your hyperlink call it.

function updateParent( url )
window.opener.location.href = url;   

<a href="javascript:updateParent('');">Apple</a>