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?
A link which opens two pages in two Iframes
Re: A link which opens two pages in two Iframes
How about adding a little wrapper function that calls openIFrame() twice, like this: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?
Code: Select all
function open2IFrames(if1, url1, if2, url2)
{
openIFrame(if1, url1);
openIFrame(if2, url2);
}
Code: Select all
,"Verzameling", "javascript:open2IFrames("main", "verzameling.htm", "menu", "menu.htm")",,,0
Kevin