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:36

Problems opening new browser window using new or blank


Poster: Philip Edwards
Dated: Thursday March 25 2004 - 11:09:45 GMT

I have just created a menu that includes links to other sites which I wanted to open in a new window. Unfortunately the use of _blank or_new does not work all the time. Sometimes it does open the link in a new window and sometimes it appears in the frame. Could I use javascript to ensure that my links do open in a new window. If this is possible could someone provide me with the text needed to put this into menu_data.js.
I have no knowledge of Javascript so any help would be great. The URL to my site is http://www.agape.org.uk/familylife

Any help to resolve this problem would be great

Philip


Poster: John
Dated: Thursday March 25 2004 - 13:37:15 GMT

See how to do that at http://www.milonic.com/menusample11.php.


Poster: Philip Edwards
Dated: Thursday March 25 2004 - 15:24:49 GMT

I looked at your link but this seems to show me that I need to use the target _new or_blank which do not work consistantly and this is my problem. Any other solutions?


Poster: John
Dated: Thursday March 25 2004 - 15:45:25 GMT

Yep - continue reading down that same page! :D

Starts out, "aI("text=Open Google;url=http://www.google.com;target=windowname;targetfeatures=width=300 height=300");

The above menu item will open a new browser window to http://www.google.com. This window will contain no scroll bars, location bars, status bars, menus or the ability to resize the window. This is the blank state of a browser window." etc...

BTW, _new and _blank should work fine. I use _new all over my sites with no problems. Meanwhile I'll look at your code again.