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

Where do I write the TARGET ?

Poster: cogitans
Dated: Friday June 10 2005 - 8:54:13 BST

I have a frame based page. In the top frame I placed the menu. And when you click the menu items I want the link to be shown in the lower frame. But I don't know how to do it.
I tried several different things. For instance "target=lowerFrame", but it doesn't work. If I do it without target the menu is replaced by the target link - as it should.
But how do I target the link correctly?

Poster: Ruth
Dated: Friday June 10 2005 - 13:50:18 BST


Not sure what frames menu you are using. If you just mean you have a frames page and have done a layout in which the menu does all it's stuff, i.e. links, submenus etc. in that frame, then to open a link in another frame you need to use the target= property of the menu.


where itemText is the text that you want to appear in the menu item, theUrlToOpen is the href to the url that you want to open, and contentFrame is the name of the frame where you want the new page to appear.

There is a frames based menu which you can see and download here This is different than what is in the download, I believe, an update that is being developed. That page has full explanations. If you are going to use this then you would not be able to open pages from 'off' site in the content frame since they would 'not' have the menu coded on them and so the menu would quit working.


Poster: cogitans
Dated: Friday June 10 2005 - 14:33:28 BST

Yes, you understood it correctly.
I have an index-page which has 2 "src=" in it. In 1 of these 2 pages the menu appears. The point is then that if I press a link in the menu then the link target opens on the 2nd page.
I tried the simple solution (just "target='2nd page'"), but that didn't seem to work out correctly. Maybe I didn't do it correctly if that was the solution that you meant before?
But anyway: if the solution is in the link, you typed, I'll check it out :-)

Poster: Ruth
Dated: Friday June 10 2005 - 15:00:50 BST


When you created your frameset each frame should have had it's own name. For example
  <frame name="header" scrolling="no" src="header.htm" etc., etc.,
<frame name="body"  src="body.htm" and so on.

So if my menu were in the header.htm, then the target= for links to open in the body would be target=body;