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

Open a new window with the URL


Poster: shuibers
Dated: Friday September 26 2003 - 18:29:31 BST

I am using the Frame Based Window menu and it works perfect only question is how can I get a url to open a new window rather than in the same window. Each time the user will have to click on the Next button to go back to the mani page...

Here is the line of code that needs to be modified just I do not know how to:

Frame_Side_array.js
,"Home","/menu/ target=_top;sourceframe=main;",,,1

Instead of /menu/ I try http://www.cnn.com/ and it displays it correctly but in the same window. I want to have a new window open with this url...


Poster: Hergio
Dated: Friday September 26 2003 - 19:39:40 BST

_top refers to the entire parent page which contains all the frames. Change _top to _blank and you will get the URL opening up in a new window every time. ;)
You can also use _self to open up only in the current frame.
You can also put a frame's name as the target and it will open up in whatever frame has that name.
Lastly you can use _parent to refer back to the window that opened the child window.

Gave you alittle more information than you needed, but hope it helps.


Poster: shuibers
Dated: Friday September 26 2003 - 19:52:20 BST

It works perfect only question is how do I do this for submenus such as this:

Frames_body_array.js:

addmenu(menu=["Exams",
,,135,1,"",plain_style,,"left",effect,,,,,,,,,,,,
,"CNN","http://www.cnn.com\?tp=win95",,,1
])


Poster: Hergio
Dated: Sunday September 28 2003 - 3:24:34 BST

If I am not mistaken, I BELIEVE you add the target immediately after the URL so, in your case...
http://www.cnn.com\?tp=win95

would become

http://www.cnn.com\?tp=win95 target=_blank

Again, Its been awhile since I looked at the v3 syntax and I am so happy with v5, I jave begun to willfully forget v3, hehe. But if it doesnt work, we'll dig alittle and find out where I am wrong. ;)