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: Wednesday July 18 2012 - 06:07:17

A link which opens two pages in two Iframes


Poster: Joost
Dated: Wednesday November 13 2002 - 20:31:23 GMT

I have a menu wich opens a page in an Iframe. That is working all very well, no problem.
But what I would like to create is a link which opens two pages in two Iframes. Is this possible?
This is the code: ,"Verzameling", "javascript:openIFrame(\"main\", \"verzameling.htm\")",,,0
When clicking this link I would also like to open menu.htm in the Iframe 'menu'. How?

Re: A link which opens two pages in two Iframes


Poster: kevin3442
Dated: Thursday November 14 2002 - 0:38:50 GMT

Joost wrote:
... ,"Verzameling", "javascript:openIFrame("main", "verzameling.htm")",,,0
When clicking this link I would also like to open menu.htm in the Iframe 'menu'. How?

How about adding a little wrapper function that calls openIFrame() twice, like this:
Code:
function open2IFrames(if1, url1, if2, url2)
{
  openIFrame(if1, url1);
  openIFrame(if2, url2);
}

Probably easier to add this function (as well as the openIFrame() function) to your menu_array.js file, rather than in a separate <script> block in your .html file. In your menu item...
Code:
,"Verzameling", "javascript:open2IFrames("main", "verzameling.htm", "menu", "menu.htm")",,,0

Might work...

Kevin