A link which opens two pages in two Iframes

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Joost
Beginner
Beginner
Posts: 2
Joined: Tue Nov 12, 2002 6:14 pm

A link which opens two pages in two Iframes

Post by Joost »

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?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: A link which opens two pages in two Iframes

Post by kevin3442 »

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: Select all

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: Select all

,"Verzameling", "javascript:open2IFrames("main", "verzameling.htm", "menu", "menu.htm")",,,0
Might work...

Kevin
Post Reply